Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Axis Class / PositionOffset Property
Example


In This Topic
    PositionOffset Property
    In This Topic
    Specifies the offset of the axis from the original position determined by the component.
    Syntax
    'Declaration
     
    <CategoryAttribute("Position")>
    <DescriptionAttribute("Specifies the offset of the axis from the original position determined by the component")>
    <DefaultValueAttribute(0)>
    Public Property PositionOffset As Single
    'Usage
     
    Dim instance As Axis
    Dim value As Single
     
    instance.PositionOffset = value
     
    value = instance.PositionOffset
    [Category("Position")]
    [Description("Specifies the offset of the axis from the original position determined by the component")]
    [DefaultValue(0)]
    public float PositionOffset {get; set;}
    Remarks
    By default set to 0.
    Example
    The following code offsets the PrimaryY axis to the left.
    Chart.Axis(StandardAxis.PrimaryY).PositionOffset = -2.5F
    Chart.Axis(StandardAxis.PrimaryY).PositionOffset = -2.5f;
    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