You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

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

Declaration

public bool SnapToGrid { get; set; }
Public Property SnapToGrid As Boolean

Property Value

Type Description
Boolean

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

Implements

DevExpress.Diagram.Core.IDiagramControl.SnapToGrid
See Also