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

Anchor property of Label

Thread ID:





19076 Sep 17,2004 06:24 AM UTC Sep 17,2004 07:15 PM UTC WinForms 1
Tags: Diagram
James Brock
Asked On September 17, 2004 06:24 AM UTC

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 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


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon