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

定義

在指定範圍的螢幕內和指定的圖形表層上,繪製鎖定的選取框架 (Frame)。 指定是否使用主要選取色彩繪製框架。

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

參數

graphics
Graphics

要在上面繪製的 Graphics

rectangle
Rectangle

Rectangle,表示框架的大小。

primary
Boolean

true,則使用主要選取的色彩繪製這個框架,否則為 false

適用於