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.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public TickMark MajorTickMark { get; set; }

Property Value

Type: System.Web.UI.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