Skip to main content

DiagramControl.SnapToGrid Property

Specifies whether to pull shapes to the grid lines whenever an end-user drags them around the Canvas. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v22.1.dll

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public bool SnapToGrid { get; set; }

Property Value

Type Description
Boolean

true, to snap shapes to the grid lines; otherwise, false.

See Also