TickMark.TickMarkStyle Property

.NET Framework (current version)

Gets or sets the tick mark style.

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

public TickMarkStyle TickMarkStyle { get; set; }

Property Value

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

A TickMarkStyle enumeration value. The default value is OutsideArea.

The TickMarkStyle property determines the style of tick marks.

Tick marks can be drawn inside the chart area, outside the chart area, across an axis line, or can be disabled.

To display tick marks for three-dimensional (3D) charts, so that they are just drawn for the width of a wall, set the TickMarkStyle property to AcrossAxis. Then specify a tick mark size of zero (0) using the Size property.

If the TickMarkStyle property is set to None, tick marks are not displayed. Tick marks can also be toggled on or off by setting the P:System.Windows.Forms.DataVisualization.Charting.TickMark.Enabled property to true or false.

.NET Framework
Available since 4.0
Return to top