ControlPaint.DrawSizeGrip 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在表格上畫一個尺寸握把。
多載
| 名稱 | Description |
|---|---|
| DrawSizeGrip(Graphics, Color, Rectangle) |
在具有指定界限與背景色的表單及指定的圖形表面上繪製尺寸握把。 |
| DrawSizeGrip(Graphics, Color, Int32, Int32, Int32, Int32) |
在具有指定界限與背景色的表單及指定的圖形表面上繪製尺寸握把。 |
DrawSizeGrip(Graphics, Color, Rectangle)
在具有指定界限與背景色的表單及指定的圖形表面上繪製尺寸握把。
public:
static void DrawSizeGrip(System::Drawing::Graphics ^ graphics, System::Drawing::Color backColor, System::Drawing::Rectangle bounds);
public static void DrawSizeGrip(System.Drawing.Graphics graphics, System.Drawing.Color backColor, System.Drawing.Rectangle bounds);
static member DrawSizeGrip : System.Drawing.Graphics * System.Drawing.Color * System.Drawing.Rectangle -> unit
Public Shared Sub DrawSizeGrip (graphics As Graphics, backColor As Color, bounds As Rectangle)
參數
備註
該 backColor 參數用來計算握把尺寸的顏色,使其始終在背景中可見。
當你定義一個大視窗時,可以包含尺寸握把。 尺寸握把是一種特殊的把手,讓使用者可以調整窗戶大小。
另請參閱
適用於
DrawSizeGrip(Graphics, Color, Int32, Int32, Int32, Int32)
在具有指定界限與背景色的表單及指定的圖形表面上繪製尺寸握把。
public:
static void DrawSizeGrip(System::Drawing::Graphics ^ graphics, System::Drawing::Color backColor, int x, int y, int width, int height);
public static void DrawSizeGrip(System.Drawing.Graphics graphics, System.Drawing.Color backColor, int x, int y, int width, int height);
static member DrawSizeGrip : System.Drawing.Graphics * System.Drawing.Color * int * int * int * int -> unit
Public Shared Sub DrawSizeGrip (graphics As Graphics, backColor As Color, x As Integer, y As Integer, width As Integer, height As Integer)
參數
- x
- Int32
尺寸握把左上角的 x 座標。
- y
- Int32
尺寸握把左上角的 y 座標。
- width
- Int32
尺寸握把的寬度。
- height
- Int32
握把的高度。
備註
該 backColor 參數用來計算握把尺寸的顏色,使其始終在背景中可見。
當你定義一個大視窗時,可以包含尺寸握把。 尺寸握把是一種特殊的把手,讓使用者可以調整窗戶大小。