Back to Devexpress

RangeBarOptionsBase.Offset Property

wpf-devexpress-dot-xpf-dot-gauges-dot-rangebaroptionsbase-d7326bfc.md

latest2.2 KB
Original Source

RangeBarOptionsBase.Offset Property

Gets or sets the offset specifying a range bar’s position on a scale.

Namespace : DevExpress.Xpf.Gauges

Assembly : DevExpress.Xpf.Gauges.v25.2.dll

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public double Offset { get; set; }
vb
Public Property Offset As Double

Property Value

TypeDescription
Double

A Double value that specifies the range bar’s offset.

|

Remarks

Use the Offset property, if you need to customize the position of the range bar with respect to other elements of a scale. Note that the Offset property behavior is different for Circular scale range bars and Linear scale range bars.

For the Circular scale, a positive value of the Offset property moves a range bar out of the scale, while a negative value moves a range bar inside the scale towards to the center. A zero value of the Offset property means the range bar is positioned on the edge of the Circular scale.

The following image illustrates the property behavior.

In the case of the Linear scale, increasing the Offset property’s value moves a range bar to the right, while decreasing Offset moves it to the left.

The image below shows this behavior.

See Also

RangeBarOptionsBase Class

RangeBarOptionsBase Members

DevExpress.Xpf.Gauges Namespace