wpf-devexpress-dot-xpf-dot-gauges-dot-scale-a31938e9.md
Gets or sets whether the major tickmarks should be visible on a scale.
Namespace : DevExpress.Xpf.Gauges
Assembly : DevExpress.Xpf.Gauges.v25.2.dll
NuGet Package : DevExpress.Wpf.Gauges
public DefaultBoolean ShowMajorTickmarks { get; set; }
Public Property ShowMajorTickmarks As DefaultBoolean
| Type | Description |
|---|---|
| DefaultBoolean |
A DefaultBoolean enumeration value that specifies the visibility of major tickmarks on a scale.
|
Available values:
| Name | Description | Return Value |
|---|---|---|
| True |
The value is true.
|
0
| | False |
The value is false.
|
1
| | Default |
The value is specified by a global option or a higher-level object.
|
2
|
Set the ShowMajorTickmarks property value to either DefaultBoolean.True or DefaultBoolean.False to control the visibility of major tickmarks on a Circular or Linear scale.
Note that by default, the ShowMajorTickmarks property is set to DefaultBoolean.Default. This means that the visibility of major tickmarks is defined by the current model of a gauge control, set by the CircularGaugeControl.Model or LinearGaugeControl.Model properties.
The table below illustrates the property behavior.
| ShowMajorTickmarks = True | ShowMajorTickmarks = False |
|---|---|
For more information on major tickmarks, refer to the tickmarks (Circular scale) and tickmarks (Linear scale) documents.
See Also