Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RangeControl.VisibleRangeWidth Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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