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. Image for the cookie policy date

Anchor property of Label

I have created my own label which is derived from Label. I intend to use this label to set my own event handlers which are all protected. I wish to set a default Anchor property to TopLeft. When using the Symbol Designer tool I can access this property in the property editor. However, when I try and access this in code it is not available? My source is attached. Help much appreciated. Jimski PEPLabel_4032.zip

1 Reply

AD Administrator Syncfusion Team September 17, 2004 07:15 PM UTC

Hi Jimski Labels in Symbols belong to the SymbolLabel Class (and not the Label Class). Modifying your PEPLablel class to derive from SymbolLabel will address this issue and you can set the Anchor by: this.Anchor = BoxPosition.MiddleLeft; You will also find this KnowledgeBase Article useful: Sometimes, labels are drawn outside my Symbol. Why?. Regards Arun

Loader.
Live Chat Icon For mobile
Up arrow icon