wpf-devexpress-dot-xpf-dot-gauges-dot-scalelineoptions.md
Gets or sets the z-index of a scale line.
Namespace : DevExpress.Xpf.Gauges
Assembly : DevExpress.Xpf.Gauges.v25.2.dll
NuGet Package : DevExpress.Wpf.Gauges
public int ZIndex { get; set; }
Public Property ZIndex As Integer
| Type | Description |
|---|---|
| Int32 |
A Int32 value that is the z-index.
|
You can access this nested property as listed below:
| Object Type | Path to ZIndex |
|---|---|
| Scale |
.LineOptions .ZIndex
|
Use the ZIndex property to specify the position of a line in the z-axis.
Note that when you add a line to a scale, it is painted behind some other gauge elements (e.g. needles), because its z-index is set to a default value. If you want to display a line in front of other gauge elements, you need to set the ZIndex property to a greater value.
This behavior is shown on the images below:
| ScaleLineOptions.ZIndex < ArcScaleNeedle.ZIndex | ScaleLineOptions.ZIndex > ArcScaleNeedle.ZIndex |
|---|---|
See Also