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.

Anchor property of Label

Thread ID:

Created:

Updated:

Platform:

Replies:

19076 Sep 17,2004 02:24 AM Sep 17,2004 03:15 PM Windows Forms 1
loading
Tags: Diagram
James Brock
Asked On September 17, 2004 02:24 AM

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

Administrator [Syncfusion]
Replied On September 17, 2004 03:15 PM

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

CONFIRMATION

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.

;