windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockingoptions-3db47a59.md
Gets or sets whether or not dock panels can stick to each other, parent forms or screen edges.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[XtraSerializableProperty]
public virtual SnapMode SnapMode { get; set; }
<XtraSerializableProperty>
Public Overridable Property SnapMode As SnapMode
| Type | Description |
|---|---|
| DevExpress.Utils.Controls.SnapMode |
A DevExpress.Utils.Controls.SnapMode enumerator value that specifies whether or not dock panels can stick to each other, parent forms or screen edges.
|
You can access this nested property as listed below:
| Object Type | Path to SnapMode |
|---|---|
| DockManager |
.DockingOptions .SnapMode
|
The SnapMode property accepts one or multiple values of the SnapMode enumerator. Each value allows dock panels to snap to specific targets when end-users drag these panels at runtime.
See the Snap Window Behavior article to learn how to implement window snapping for controls that do not support it out-of-the-box.
See Also