Skip to main content
A newer version of this page is available. .

RangeControl.VisibleRangeWidth Property

Gets or sets the width of the visible range relative to the data total range.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[Browsable(false)]
public double VisibleRangeWidth { get; }

Property Value

Type Description
Double

A double value that is the width of the visible range, in relative coordinates.

Remarks

A relative width is a value equal to or less than 1. If a Range Control displays all data in its entirety without zooming (the zoom factor, specified by the RangeControl.VisibleRangeScaleFactor property, is 1), the current visible range width is 1:

RangeControl-VisibleRangeStartPosition-0

If data is zoomed by 2X, half of data is displayed within the Range Control’s viewport. In this case, the current visible range width is 0.5:

RangeControl-VisibleRangeWidth-0.5

The VisibleRangeWidth and RangeControl.VisibleRangeScaleFactor values are linked by the following formula:

VisibleRangeWidth = 1/VisibleRangeScaleFactor.

See Also