ParentControlDesigner.GridSize Property

Definition

Gets or sets the size of each square of the grid that is drawn when the designer is in grid draw mode.

C#
protected System.Drawing.Size GridSize { get; set; }

Property Value

A Size that represents the size of each square of the grid drawn on a form or user control.

Exceptions

Size is outside the allowed range for GridSize. The default minimum value is 2, and the default maximum value is 200.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also