Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / LegendData Class / TextOffset Property
Example


In This Topic
    TextOffset Property
    In This Topic
    The offset of the legend item texts from the legend item marks.
    Syntax
    'Declaration
     
    <CategoryAttribute("General")>
    <DescriptionAttribute("The offset of the legend item texts from the legend item marks.")>
    <DefaultValueAttribute(4)>
    Public Property TextOffset As Integer
    'Usage
     
    Dim instance As LegendData
    Dim value As Integer
     
    instance.TextOffset = value
     
    value = instance.TextOffset
    [Category("General")]
    [Description("The offset of the legend item texts from the legend item marks.")]
    [DefaultValue(4)]
    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