A newer version of this page is available. Switch to the current version.

RangeControl.VisibleRangeScaleFactor Property

Gets or sets the current scale (zoom) factor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll


public double VisibleRangeScaleFactor { get; set; }

Property Value

Type Default Description


A double value, greater than or equal to 1, that specifies the current scale factor.


A scale(zoom) factor is a value greater than or equal to 1. A scale factor of 1 means that data is not zoomed. A scale factor of 2 means that data is zoomed by 2X, etc.

An end-user can zoom data via the Zoom and Scroll Bar. The current scale(zoom) factor is specified by the VisibleRangeScaleFactor property. To prevent a user from zooming data beyond a specific zoom level, use the RangeControl.VisibleRangeMaximumScaleFactor property.

The VisibleRangeScaleFactor is used to calculate the width of the visible range (RangeControl.VisibleRangeWidth) relative to the total data range. These values are linked by the formula:

VisibleRangeWidth = 1/VisibleRangeScaleFactor.

See Also