ControlPaint.DrawSizeGrip 方法

定义

在窗体上绘制大小手柄。

重载

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)

参数

graphics
Graphics

要进行绘制的 Graphics

backColor
Color

背景的 Color,使用它来确定大小手柄的颜色。

bounds
Rectangle

代表大小手柄尺寸的 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)

参数

graphics
Graphics

要进行绘制的 Graphics

backColor
Color

背景的 Color,使用它来确定大小手柄的颜色。

x
Int32

大小手柄的左上角的 x 坐标。

y
Int32

大小手柄的左上角的 y 坐标。

width
Int32

大小手柄的宽度。

height
Int32

大小手柄的高度。

注解

backColor 参数用于计算大小手柄的颜色,使其始终在背景上可见。

定义可调整大小的窗口时,可以包含大小手柄。 大小手柄是一种特殊的手柄,允许用户调整窗口大小。

另请参阅

适用于