Back to Devexpress

DiagramItem.CanSnapToThisItem Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramitem-a19b7892.md

latest1.6 KB
Original Source

DiagramItem.CanSnapToThisItem Property

Specifies whether other items can snap to this item.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DefaultValue(null)]
[DiagramCategory(DiagramCategory.Behavior)]
public virtual bool? CanSnapToThisItem { get; set; }
vb
<DefaultValue(Nothing)>
<DiagramCategory(DiagramCategory.Behavior)>
Public Overridable Property CanSnapToThisItem 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 DiagramItem.CanSnapToOtherItems property is set to true , it aligns with other items whose CanSnapToThisItem property is also set to true.

See Also

DiagramItem Class

DiagramItem Members

DevExpress.XtraDiagram Namespace