Language

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 選択フレームをアクティブな状態で描画する場合。それ以外の場合は false。

outsideRect
Rectangle

選択フレームの外側の境界を表す Rectangle 。

insideRect
Rectangle

選択フレームの内部境界を表す Rectangle 。

backColor
Color

フレームの背後にある背景の Color 。

注釈

選択フレームは、デザイン時に選択したコンポーネントを中心に描画されるフレームです。

backColor パラメーターは、フレームの塗りつぶしの色を計算するために使用され、常に背景に対して表示されます。

activeパラメータがtrueに設定されている場合、選択フレームはコンポーネントがアクティブになっていることを示すハッチ マークのセットとして描画されます。それ以外の場合、選択フレームは実装に応じて点線のパターンまたは何も描画されません。

適用対象