windowsforms-devexpress-dot-xtraeditors-dot-rangecontrol-ed501950.md
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
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowPanMode { get; set; }
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property AllowPanMode As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if the current selection can be dragged within the Viewport; otherwise, false.
|
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 = true | AllowPanMode = false |
|---|---|
See Also