VisualStyleElement.Window.MdiMinButton.Normal プロパティ

定義

通常の状態のマルチ ドキュメント インターフェイス (MDI) 子ウィンドウにある [最小化] ボタンを表す visual スタイル要素を取得します。

public:
 static property System::Windows::Forms::VisualStyles::VisualStyleElement ^ Normal { System::Windows::Forms::VisualStyles::VisualStyleElement ^ get(); };
public static System.Windows.Forms.VisualStyles.VisualStyleElement Normal { get; }
static member Normal : System.Windows.Forms.VisualStyles.VisualStyleElement
Public Shared ReadOnly Property Normal As VisualStyleElement

プロパティ値

VisualStyleElement通常の状態の MDI 子ウィンドウの [最小化] ボタンを表す 。

次のコード例では、 プロパティによって返される を使用して をVisualStyleRendererVisualStyleElement作成する方法をNormal示します。 この例を実行するには、Windows フォームに貼り付けます。 フォームのPaintイベントを処理し、イベント処理メソッドから メソッドをPaint呼び出しDrawVisualStyleElementWindowMdiMinButton1、 を としてPaintEventArgs渡しますe

public void DrawVisualStyleElementWindowMdiMinButton1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Window.MdiMinButton.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Window.MdiMinButton.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Window.MdiMinButton.Normal",
             this.Font, Brushes.Black, new Point(10, 10));
    }
    else
        e.Graphics.DrawString("This element is not defined in the current visual style.",
             this.Font, Brushes.Black, new Point(10, 10));
}
Public Sub DrawVisualStyleElementWindowMdiMinButton1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Window.MdiMinButton.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Window.MdiMinButton.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Window.MdiMinButton.Normal", _
          Me.Font, Brushes.Black, New Point(10, 10))
    Else
        e.Graphics.DrawString("This element is not defined in the current visual style.", _
          Me.Font, Brushes.Black, New Point(10, 10))
    End If
End Sub

注釈

プロパティによって返される をVisualStyleElementNormal使用して、 をVisualStyleRenderer作成できます。

適用対象