Diagram::DefaultGridSize Property
Visual Studio 2015
Gets the size of the grid for the diagram. When the user moves a shape, its position is adjusted to align with the grid.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: [BrowsableAttribute(false)] property double DefaultGridSize { virtual double get(); }
Override this property to change the default grid size for the diagram and its shapes.
If you do not want shapes to snap to a grid, set SnapToGrid false, or override it.
Show: