通过


ParentControlDesigner.GridSize 属性

定义

获取或设置设计器处于网格绘制模式时绘制的网格的每个平方的大小。

protected:
 property System::Drawing::Size GridSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
protected System.Drawing.Size GridSize { get; set; }
member this.GridSize : System.Drawing.Size with get, set
Protected Property GridSize As Size

属性值

一个 Size 表示在窗体或用户控件上绘制的网格的每个平方的大小。

例外

Size超出了允许的范围。GridSize 默认值为 2,默认值为 200。

适用于

另请参阅