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.v23.2.dll

NuGet Package: DevExpress.Wpf.Gauges

Declaration

public int ZIndex { get; set; }

Property Value

Type Description
Int32

A Int32 value that is the z-index.

Property Paths

You can access this nested property as listed below:

Object Type Path to ZIndex
Scale
.LineOptions .ZIndex

Remarks

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