ControlPaint.DrawSizeGrip Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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);
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)
Parameters
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
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.
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)
Parameters
- 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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈