Hello,
I'm working on a Diagram that has plenty of nodes that inherit from Syncfusion's Rectangle. We have custom labeling for those nodes, but we're having a slight issue with containment. I was wondering how the labeling works. Ideally, I would like to be able to refer to some sort of 'bounds' the way we use the boundingRectangle property that would give us the bounds of the node including the Label's text rectangle. The purpose would be to stop the label of a node from being placed off of a diagram's canvas without repeatedly performing the addition of an assumed width of a label (see screenshot.) I'm willing to do that handling myself based on our user's label options, but I'm wondering if Syncfusion already has a way to get the real size of a Label's bounds, preferably relative to its containing node?
Thanks!
Attachment:
LabelBounds_98b504cd.zip