ParentControlDesigner::GridSize Property

 

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

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

protected:
property Size GridSize {
	Size get();
	void set(Size value);
}

Property Value

Type: System.Drawing::Size

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

Exception Condition
ArgumentException

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

.NET Framework
Available since 1.1
Return to top
Show: