ScaleLineOptions.ZIndex Property
In This Article
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
#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 |
|
#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:
Scale |
Scale |
---|---|
![]() |
![]() |
See Also