MajorTickMark Property

Axis.MajorTickMark Property

.NET Framework (current version)
 

Gets or sets a TickMark object used to set the major tick mark properties of an axis.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

[BindableAttribute(true)]
public TickMark MajorTickMark { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.TickMark

A TickMark object used to set the properties of a major tick mark of an axis.

Major tick marks are always drawn in conjunction with a data point. Categorical axis tick marks will occur at the same point along an axis as a data point. For value axes, major tick marks are drawn by default wherever labels occur.

You can use this property to change the major tick mark properties such as frequency, color, or size.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft