Xceed Chart for WinForms v4.4 Documentation
MajorTicks Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Axis Class : MajorTicks Property
Gives you access to the array of major ticks.
Syntax
'Declaration
 
<CategoryAttribute("Major Ticks")>
<DescriptionAttribute("Gives you access to the array of major ticks. When the current axis scale is switched in manual major tick mode the user can specify the values on which major ticks are displayed.")>
Public Property MajorTicks As TypedArrayList
'Usage
 
Dim instance As Axis
Dim value As TypedArrayList
 
instance.MajorTicks = value
 
value = instance.MajorTicks
[Category("Major Ticks")]
[Description("Gives you access to the array of major ticks. When the current axis scale is switched in manual major tick mode the user can specify the values on which major ticks are displayed.")]
public TypedArrayList MajorTicks {get; set;}
Remarks
When the current axis scale is switched in manual major tick mode the user can specify the values on which major ticks are displayed.
Example
The following code displays ticks at exact user specified values.
Dim axis As Axis =  Chart.Axis(StandardAxis.PrimaryY) 
axis.ScaleMode = AxisScaleMode.Numeric
axis.NumericScale.MajorTickMode = MajorTickModeNumeric.Manual
axis.MajorTicks.Add(5)
axis.MajorTicks.Add(10)
axis.MajorTicks.Add(12)
axis.MajorTicks.Add(18)
Axis axis = Chart.Axis(StandardAxis.PrimaryY);
axis.ScaleMode = AxisScaleMode.Numeric;
axis.NumericScale.MajorTickMode = MajorTickModeNumeric.Manual;
axis.MajorTicks.Add(5);
axis.MajorTicks.Add(10);
axis.MajorTicks.Add(12);
axis.MajorTicks.Add(18);
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

Axis Class
Axis Members