Back to Devexpress

DockPanelOptions.ResizeDirection Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpaneloptions-cc9e317a.md

latest3.0 KB
Original Source

DockPanelOptions.ResizeDirection Property

Gets or sets the borders at which the current dock panel can be resized using the mouse.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ResizeDirection.All)]
[XtraSerializableProperty]
public ResizeDirection ResizeDirection { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(ResizeDirection.All)>
Public Property ResizeDirection As ResizeDirection

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Docking.Helpers.ResizeDirectionAll

A ResizeDirection enumeration value that specifies the borders at which the current dock panel can be resized using the mouse.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ResizeDirection
DockPanel

.Options .ResizeDirection

|

Remarks

When an end-user hovers over a border or corner of a dock panel with the mouse pointer, the pointer changes its view to a double-headed arrow indicating that the current panel can be resized. See the figure below.

By default, a dock panel can be resized at all its borders and corners. The ResizeDirection property allows you to customize at which borders the current dock panel can be resized using the mouse. The ResizeDirection enumeration provides the Left , Right , Top and Bottom flags, each of which specifies that the dock panel can be resizes by dragging the corresponding panel border. Note that the ResizeDirection enumeration supports bitwise combinations of its flags. If a flag is not enabled, the mouse pointer does not change its view when it is hovered over the corresponding panel border, and the resize operation cannot be performed.

To manage the panel resizing feature in a centralized way, you can also handle the DockManager.CreateResizeZone event.

See Also

DockManager.CreateResizeZone

DockPanel.CreateResizeZone

DockPanelOptions Class

DockPanelOptions Members

DevExpress.XtraBars.Docking Namespace