We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom Label bounds?

Thread ID:





119524 Jul 3,2015 02:31 PM UTC Jul 6,2015 12:17 PM UTC WinForms 1
Tags: Diagram
Andrew Hall
Asked On July 3, 2015 02:31 PM UTC


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?


Attachment: LabelBounds_98b504cd.zip

Swarnesh Krishna Kumar [Syncfusion]
Replied On July 6, 2015 12:17 PM UTC

Hi Andrew,
Thanks for contacting Syncfusion support. We have created a support incident under your account to track the status of this query.

Please log on to our support website to check for further updates.


Please let me know if you have any questions.

Swarnesh K


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon