Back to Devexpress

DocumentManager.SnapMode Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-c0767ec2.md

latest2.3 KB
Original Source

DocumentManager.SnapMode Property

Gets or sets whether or not Documents owned by this DocumentManager can stick to each other, parent forms or screen edges.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public SnapMode SnapMode { get; set; }
vb
<DXCategory("Behavior")>
Public Property SnapMode As SnapMode

Property Value

TypeDescription
DevExpress.Utils.Controls.SnapMode

A DevExpress.Utils.Controls.SnapMode enumerator value that specifies whether or not Documents can stick to each other, parent forms or screen edges.

|

Remarks

The SnapMode property accepts one or multiple values of the SnapMode enumerator. Each value allows Documents to snap to specific targets when end-users drag these Documents at runtime.

  • OwnerControl - Documents snap to a parent control (not a form) that owns this DocumentManager component.
  • OwnerForm - Documents snap to the owner form’s bounds.
  • Screens - Documents snap to screen edges.
  • SnapForms - Documents snap to each other and sticky windows.
  • All - Documents snap to any available target mentioned above.
  • None - Documents do not snap.

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

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace