All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramGridSettings.SnapToGrid Property

Specifies whether diagram elements should snap to grid lines.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v20.2.dll

Declaration

[DefaultValue(true)]
public bool SnapToGrid { get; set; }
<DefaultValue(True)>
Public Property SnapToGrid As Boolean

Property Value

Type Default Description
Boolean

true

true to snap elements to grid lines; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to SnapToGrid
ASP.NET Controls and MVC Extensions ASPxDiagram
.SettingsGrid.SnapToGrid
ASP.NET MVC Extensions DiagramSettings
.SettingsGrid.SnapToGrid
MVCxDiagram
.SettingsGrid.SnapToGrid

Remarks

Use the SnapToGrid property to programmatically specify whether diagram elements should snap to grid lines.

Users can enable/disable this functionality via the UI.

Diagram Settings

See Also