Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
Org Chart - resizing boxes to fit the text
Org Chart - resizing boxes to fit the text
Post Reply
Org Chart - resizing boxes to fit the text
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 9 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Kevin,
We were not able to reproduce this behavior on our side. Can you please explain in more details how you create the diagram in question or post some source code?
We used the following piece of code to test the auto sizing of the table shape:
NTableShape tableShape = new NTableShape(200, 10, 100, 50);
tableShape.InitTable(1, 1);
tableShape[0, 0].Text = "Martial IsIn(Absent,Divorced,Married-spouse-absent,Unmarried,Widowed)";
document.ActiveLayer.AddChild(tableShape);
Please, try this code on your side and let us know if it works for you, too.
Best Regards,
Nevron Support Team
Reply
Like
0
Kevin Harrison 1
Kevin Harrison 1
posted 9 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 176,
Visits: 1.9K
H guys.
I'm using the Org chart design reworked to just have a single cell containing text for each box.
Sometimes the text is long so I want the style I have assigned to be overridden so the text fits in the box, or the box is made larger.
Strangely I have found, almost by accident, that if I add "\r" to my text, then the font and box resize and the text fits.
If I don't add the "\r" then the text is split onto two lines and is not fully visible.
Is this the recommended method to achieve what I want?
With "\r" added:
Without added "\r":
Thanks, Kevin
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search