Profile Picture

NLineShape text label bounds

Posted By Steele Arbeeny 14 Years Ago
Author
Message
Steele Arbeeny
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 1, Visits: 1

I am using NLineShape to connect 2 shapes that will later be laid out using NSpringLayout.

I would like to place a text label oriented with the NLineShape. However if the text is longer than the line it extends past the endpoints of the line. Is there a way to either get the text to clip or wrap to the extents of the NLineShape ? The default NLogicalLineLabel does not contain a Mode property, and If I use a NBoundsLabel, the text is not oriented with the NLineShape. I dont think I can clip the text myself becasue I dont know the length of the line becasue it is set by the layout algorithm.

Is there any way to do this ?

Thanks in advance...


Steele



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Steele,

Clipping or trimming of texts is currently not supported by the diagramming component. A possible workaround is to measure the text and compare its dimensions to the length of the line after the layout is completed. Then you can trim the characters which go out of the line bounds by yourself.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic