Skip to main content

ScaleLineOptions.ZIndex Property

Gets or sets the z-index of a scale line.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v24.1.dll

NuGet Package: DevExpress.Wpf.Gauges


public int ZIndex { get; set; }

Property Value

Type Description

A Int32 value that is the z-index.

Property Paths

You can access this nested property as listed below:

Object Type Path to ZIndex
.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
LineOptions_ZIndex is less than Needle's one LineOptions_ZIndex is greater than Needle's one
See Also