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.v20.1.dll

Declaration

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

Property Value

Type Description
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