Axis.MajorTickMark Property

Definition

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

public:
 property System::Windows::Forms::DataVisualization::Charting::TickMark ^ MajorTickMark { System::Windows::Forms::DataVisualization::Charting::TickMark ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::TickMark ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))]
public System.Windows.Forms.DataVisualization.Charting.TickMark MajorTickMark { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))>]
member this.MajorTickMark : System.Windows.Forms.DataVisualization.Charting.TickMark with get, set
Public Property MajorTickMark As TickMark

Property Value

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

Attributes

Remarks

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.

Applies to