Back to Devexpress

RangeControl.AllowPanMode Property

windowsforms-devexpress-dot-xtraeditors-dot-rangecontrol-ed501950.md

latest2.1 KB
Original Source

RangeControl.AllowPanMode Property

Gets or sets whether the current selection can be dragged within the Viewport (client area).

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowPanMode { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property AllowPanMode As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the current selection can be dragged within the Viewport; otherwise, false.

|

Remarks

If the AllowPanMode option is enabled, end-users can drag the current selection within the Viewport. This allows users to change range bounds while the range length remains fixed.

If you set the AllowPanMode property to false , dragging with a mouse within the client area leads to recalculating the range’s bounds and length based on the initial and final mouse positions.

AllowPanMode = trueAllowPanMode = false

See Also

Visual Elements

RangeControl Class

RangeControl Members

DevExpress.XtraEditors Namespace