Offset Property (NTextStyle)
Controls the offset of the text origin point from the text base point.
The following example creates a label ten pixels away from the left top corner of the control.
Dim label As NLabel = New NLabel()
label.Text = "Offset of the origin point 10"
label.HorizontalMargin = 0
label.VerticalMargin = 0
label.TextProps.HorzAlign = HorzAlignNear
label.TextProps.VertAlign = HorzAlignNear
label.TextProps.Offset = New NPointL(10, 10)
NChartControl.Labels.Add(label)
NLabel label = new NLabel();
label.Text = "Offset of the origin point 10";
label.HorizontalMargin = 0;
label.VerticalMargin = 0;
label.TextProps.HorzAlign = HorzAlignNear;
label.TextProps.VertAlign = HorzAlignNear;
label.TextProps.Offset = new NPointL(10, 10);
NChartControl.Labels.Add(label);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2