語言

ControlPaint.DrawGrabHandle(Graphics, Rectangle, Boolean, Boolean) 方法

定義

在指定的圖形表面、指定範圍內,以及指定的狀態與樣式上繪製標準選取抓取柄字形。

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)

參數

graphics
Graphics

可以 Graphics 參考的。

rectangle
Rectangle

那 Rectangle 代表抓把字形的尺寸。

primary
Boolean

true將把手拉成主要抓手;否則,。 false

enabled
Boolean

true在啟用狀態下繪製手柄;否則,。 false

備註

抓取把手被物件用來指示使用者可以直接操作物件。 操作可以包括大小調整和移動等動作。

適用於