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.
Unfortunately, activation email could not send to your email. Please try again.

Label Anchor and Horizontal Alignment - Label should never obscure symbol

Thread ID:





33862 Aug 28,2005 11:27 AM Aug 30,2005 02:13 PM Windows Forms 2
Tags: Diagram
Richard Deverson
Asked On August 28, 2005 11:27 AM

Hello, I would like to achieve the following: When label.Anchor = MiddleLeft then the label should "grow" to the left, as text is added. When label.Anchor = MiddleRight then the label should "grow" to the right, as text is added. I.e. the symbol is never obscured by the label. Is there an "easy" way to do this, i.e. just via label properties? Or do I have to dynamically calculate the label offset based on it''s length (OK this is probably not that hard)? I tried playing with Horizontal Alignment, but it doesn''t help, and after looking in the knowledge base I think I know why (the label anchor is the center of the label).

Richard Deverson
Replied On August 28, 2005 11:46 AM

Solved it myself by dynamically calculating the Label.OffsetX value. This works OK, but now I have a different problem, I''ll post it separately.

Administrator [Syncfusion]
Replied On August 30, 2005 02:13 PM

Hi Richard, Your suggestion to expand SymbolLabels by repositioning them based on their alignment relative to the symbol''s centerline sounds perfectly logical to me. I will go ahead and file this as a feature request, and we will revise the functionality in a future version of the product. Per our support policy, while we cannot guarantee a turnaround time on the implementation, please be assured that we will do our best to accomodate the request in a timely manner. Thank you for having brought this issue to our attention. Regards, Prakash Surendra Syncfusion Inc.,


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.

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.