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

備註

物件會使用抓取控點,向使用者指出使用者可以直接操作物件。 操作可以包含調整大小和移動等動作。

適用於