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.
ADAdministrator Syncfusion Team September 17, 2004 02:15 PM
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?.