Export (0) Print
Expand All

ControlPaint.DrawGrabHandle Method

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

[Visual Basic]
Public Shared Sub DrawGrabHandle( _
   ByVal graphics As Graphics, _
   ByVal rectangle As Rectangle, _
   ByVal primary As Boolean, _
   ByVal enabled As Boolean _
)
[C#]
public static void DrawGrabHandle(
 Graphics graphics,
 Rectangle rectangle,
 bool primary,
 bool enabled
);
[C++]
public: static void DrawGrabHandle(
 Graphics* graphics,
 Rectangle rectangle,
 bool primary,
 bool enabled
);
[JScript]
public static function DrawGrabHandle(
   graphics : Graphics,
 rectangle : Rectangle,
 primary : Boolean,
 enabled : Boolean
);

Parameters

graphics
The Graphics to draw on.
rectangle
The Rectangle that represents the dimensions of the grab handle glyph.
primary
true to draw the handle as a primary grab handle; otherwise, false.
enabled
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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ControlPaint Class | ControlPaint Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft