แก้ไข

แชร์ผ่าน


ControlPaint.DrawGrabHandle(Graphics, Rectangle, Boolean, Boolean) Method

Definition

Draws a standard selection grab handle glyph on the specified graphics surface, within the specified bounds, and in the specified state and style.

public:
 static void DrawGrabHandle(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, bool primary, bool enabled);
public static void DrawGrabHandle (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, bool primary, bool enabled);
static member DrawGrabHandle : System.Drawing.Graphics * System.Drawing.Rectangle * bool * bool -> unit
Public Shared Sub DrawGrabHandle (graphics As Graphics, rectangle As Rectangle, primary As Boolean, enabled As Boolean)

Parameters

graphics
Graphics

The Graphics to draw on.

rectangle
Rectangle

The Rectangle that represents the dimensions of the grab handle glyph.

primary
Boolean

true to draw the handle as a primary grab handle; otherwise, false.

enabled
Boolean

true to draw the handle in an enabled state; otherwise, false.

Remarks

Grab handles are used by objects to indicate to the user that the user can directly manipulate the object. The manipulation can consist of actions such as sizing and moving.

Applies to