Xceed Chart for WinForms v4.4 Documentation
AutoLabels Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > AxisScale Class : AutoLabels Property
Specifies whether the scale should produce automatic labels.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<CategoryAttribute("Axis Texts")>
<DescriptionAttribute("When set to false labels are extracted from the Labels collection of the axis. When set to true labels are automatically generated from this axis scale (if it is the active one)")>
Public Property AutoLabels As Boolean
'Usage
 
Dim instance As AxisScale
Dim value As Boolean
 
instance.AutoLabels = value
 
value = instance.AutoLabels
[DefaultValue()]
[Category("Axis Texts")]
[Description("When set to false labels are extracted from the Labels collection of the axis. When set to true labels are automatically generated from this axis scale (if it is the active one)")]
public bool AutoLabels {get; set;}
Remarks
By default set to true. The generated labels are displayed on major tick marks.
Example
The following code displays custom labels for the PrimaryX axis (assuming that it is in dimension mode).
Dim axis As Axis =  Chart.Axis(StandardAxis.PrimaryX) 
axis.DimensionScale.AutoLabels = False
axis.Labels.Add("Category1")
axis.Labels.Add("Category2")
axis.Labels.Add("Category3")
axis.Labels.Add("Category4")
Axis axis = Chart.Axis(StandardAxis.PrimaryX);
axis.DimensionScale.AutoLabels = false;
axis.Labels.Add("Category1");
axis.Labels.Add("Category2");
axis.Labels.Add("Category3");
axis.Labels.Add("Category4");
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

AxisScale Class
AxisScale Members