How To Set the Custom Position For a Label
29 Feb 2016 / 1 minute to read
We can adjust the label position by setting the Position property as ‘Custom’. Then, we have to set the Offset values for the X and Y coordinates to specify the label position.
// Setting custom position for a label outerRect.Labels.Add(new Syncfusion.Windows.Forms.Diagram.Label()); outerRect.Labels.Text = "Rectangle"; outerRect.Labels.Position = Position.Custom; outerRect.Labels.OffsetX = 50; outerRect.Labels.OffsetY= 65;
' Setting custom position for a label outerRect.Labels.Add(New Syncfusion.Windows.Forms.Diagram.Label()) outerRect.Labels(0).Text = "Rectangle" outerRect.Labels(0).Position = Position.Custom outerRect.Labels(0).OffsetX = 50 outerRect.Labels(0).OffsetY= 65
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page