Back to Devexpress

DiagramItem.CanSnapToOtherItems Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramitem-2f95dd29.md

latest1.6 KB
Original Source

DiagramItem.CanSnapToOtherItems Property

Specifies whether the item can snap to other items.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(null)]
[DiagramCategory(DiagramCategory.Behavior)]
public virtual bool? CanSnapToOtherItems { get; set; }
vb
<DefaultValue(Nothing)>
<DiagramCategory(DiagramCategory.Behavior)>
Public Overridable Property CanSnapToOtherItems As Boolean?

Property Value

TypeDefaultDescription
Nullable<Boolean>null

true if the item can snap to other items; otherwise, false.

|

Remarks

As the end-user moves or resizes an item whose CanSnapToOtherItems property is set to true , it aligns with other items whose DiagramItem.CanSnapToThisItem property is also set to true.

See Also

DiagramItem Class

DiagramItem Members

DevExpress.XtraDiagram Namespace