Прочетете на английски Редактиране

Споделяне чрез


ControlPaint.DrawSizeGrip Method

Definition

Draws a size grip on a form.

Overloads

DrawSizeGrip(Graphics, Color, Rectangle)

Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface.

DrawSizeGrip(Graphics, Color, Int32, Int32, Int32, Int32)

Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface.

DrawSizeGrip(Graphics, Color, Rectangle)

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface.

public static void DrawSizeGrip (System.Drawing.Graphics graphics, System.Drawing.Color backColor, System.Drawing.Rectangle bounds);

Parameters

graphics
Graphics

The Graphics to draw on.

backColor
Color

The Color of the background used to determine the colors of the size grip.

bounds
Rectangle

The Rectangle that represents the dimensions of the size grip.

Remarks

The backColor parameter is used to calculate the color of the size grip so that it is always visible against the background.

When you define a sizable window, you can include a size grip. A size grip is a special handle that enables the user to resize a window.

See also

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

DrawSizeGrip(Graphics, Color, Int32, Int32, Int32, Int32)

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface.

public static void DrawSizeGrip (System.Drawing.Graphics graphics, System.Drawing.Color backColor, int x, int y, int width, int height);

Parameters

graphics
Graphics

The Graphics to draw on.

backColor
Color

The Color of the background used to determine the colors of the size grip.

x
Int32

The x-coordinate of the upper left corner of the size grip.

y
Int32

The y-coordinate of the upper left corner of the size grip.

width
Int32

The width of the size grip.

height
Int32

The height of the size grip.

Remarks

The backColor parameter is used to calculate the color of the size grip so that it is always visible against the background.

When you define a sizable window, you can include a size grip. A size grip is a special handle that enables the user to resize a window.

See also

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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