Xceed Chart for WinForms v4.4 Documentation
TextOffset Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > LegendData Class : TextOffset Property
The offset of the legend item texts from the legend item marks.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("The offset of the legend item texts from the legend item marks.")>
<CategoryAttribute("General")>
Public Property TextOffset As Integer
'Usage
 
Dim instance As LegendData
Dim value As Integer
 
instance.TextOffset = value
 
value = instance.TextOffset
[DefaultValue()]
[Description("The offset of the legend item texts from the legend item marks.")]
[Category("General")]
public int TextOffset {get; set;}
Remarks
This property defines the offset in pixels. The default value is 4.
Example
The following example increases the text offset:
Dim legend As Legend = CType(NChartControl.Legends(0), Legend)
legend.Data.TextOffset = 10
Legend legend  = (Legend)NChartControl.Legends[0];
legend.Data.TextOffset = 10;
Requirements

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

See Also

Reference

LegendData Class
LegendData Members