ControlPaint.DrawSelectionFrame 方法

定義

在指定的圖形表層上,繪製指定狀態的標準選取框架,其具有指定內部和外部大小和指定的背景色彩。

public:
 static void DrawSelectionFrame(System::Drawing::Graphics ^ graphics, bool active, System::Drawing::Rectangle outsideRect, System::Drawing::Rectangle insideRect, System::Drawing::Color backColor);
public static void DrawSelectionFrame (System.Drawing.Graphics graphics, bool active, System.Drawing.Rectangle outsideRect, System.Drawing.Rectangle insideRect, System.Drawing.Color backColor);
static member DrawSelectionFrame : System.Drawing.Graphics * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Drawing.Color -> unit
Public Shared Sub DrawSelectionFrame (graphics As Graphics, active As Boolean, outsideRect As Rectangle, insideRect As Rectangle, backColor As Color)

參數

graphics
Graphics

要在上面繪製的 Graphics

active
Boolean

true,則繪製作用狀態 (Active State) 的選取框架,否則為 false

outsideRect
Rectangle

Rectangle,表示選取框架的外部界線。

insideRect
Rectangle

Rectangle,表示選取框架的內部界線。

backColor
Color

框架後方背景的 Color

備註

選取範圍框架是在設計階段繪製在選取元件周圍的框架。

參數 backColor 是用來計算框架的填滿色彩,使其一律會在背景上顯示。

active如果 參數設定 true 為 ,則選取範圍框架會繪製為一組影線標記,指出元件已啟動;否則,選取範圍框架會根據實作以虛線圖樣或無專案繪製。

適用於