Skip to main content
A newer version of this page is available. .

MajorTickmarkOptions Class

Contains settings that define the layout and behavior of the major tickmarks along the scale.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gauges, DevExpress.Wpf.Gauges

Declaration

public class MajorTickmarkOptions :
    TickmarkOptions

The following members return MajorTickmarkOptions objects:

Remarks

The options provided by a MajorTickmarkOptions instance can be accessed via the Scale.MajorTickmarkOptions property of a Scale object.

To define the layout of the major tickmarks, use the MajorTickmarkOptions.ZIndex, TickmarkOptions.Offset, TickmarkOptions.FactorThickness and TickmarkOptions.FactorLength properties.

The behavior of the major tickmarks is set by the MajorTickmarkOptions.ShowFirst, MajorTickmarkOptions.ShowLast properties.

For more information on major tickmarks, refer to the Tickmarks (Circular Scale) and Tickmarks (Linear Scale) documents.

Example

This example demonstrates how to customize the tickmarks on a Circular scale.

View Example

<dxga:ArcScale.TickmarksPresentation>
    <dxga:SmartTickmarksPresentation 
        MajorTickBrush="#FF7C8295" MinorTickBrush="#FF7C8295" />
</dxga:ArcScale.TickmarksPresentation>
<dxga:ArcScale.MajorTickmarkOptions>
    <dxga:MajorTickmarkOptions Offset="-2" />
</dxga:ArcScale.MajorTickmarkOptions>
<dxga:ArcScale.MinorTickmarkOptions>
    <dxga:MinorTickmarkOptions Offset="-2" />
</dxga:ArcScale.MinorTickmarkOptions>
See Also