Skip to main content

RangeBase.EndValue Property

Gets or sets the end position of the range on a scale.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v24.1.dll

NuGet Package: DevExpress.Wpf.Gauges

Declaration

public RangeValue EndValue { get; set; }

Property Value

Type Description
RangeValue

A RangeValue object that allows to set the end position of the range in absolute or relative units.

Remarks

Use the RangeBase.StartValue and EndValue properties to specify the position of the range on a scale.

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

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

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

Note that the EndValue can be either less than the StartValue or greater than the StartValue - both situations are correct.

The table below illustrates this behavior.

StartValue is less than EndValue StartValue is greater than EndValue
Range_EndValue greater StartValue Range_StartValue greater EndValue

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EndValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also