Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ScaleLineOptions.ZIndex Property

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

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v24.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