Back to Devexpress

RangeValue.RangeValueType Property

wpf-devexpress-dot-xpf-dot-gauges-dot-rangevalue.md

latest2.5 KB
Original Source

RangeValue.RangeValueType Property

Returns a value that specifies the unit in which to store range boundaries.

Namespace : DevExpress.Xpf.Gauges

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public RangeValueType RangeValueType { get; }
vb
Public ReadOnly Property RangeValueType As RangeValueType

Property Value

TypeDescription
RangeValueType

A RangeValueType enumeration value that specifies the measurement unit for a range boundary.

|

Available values:

NameDescription
Absolute

Range value is specified in absolute measure units.

| | Percent |

Range value is specified in percents.

|

Remarks

RangeValue is a complex object that allows you to set the RangeBase.StartValue and RangeBase.EndValue properties in different units. The RangeValueType property defines how to treat the RangeValue.Value property - as either an absolute value or as a percent.

The following XAML illustrates how to set this property for the range on the circular scale:

xaml
<dxga:ArcScaleRange StartValue="10" EndValue="40" />
xaml
<dxga:ArcScaleRange StartValue="25%" EndValue="75%" />
xaml
<dxga:ArcScaleRange StartValue="10" EndValue="75%" />

To identify whether the range is set in absolute or relative units, use the RangeValue.IsPercent and RangeValue.IsAbsolute properties.

See Also

RangeValue Struct

RangeValue Members

DevExpress.Xpf.Gauges Namespace