VisualStyleElement.ExplorerBar.NormalGroupCollapse.Normal プロパティ

定義

エクスプローラー バーにある共通項目グループの通常の閉じるボタンを表す 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

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

public void DrawVisualStyleElementExplorerBarNormalGroupCollapse1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.ExplorerBar.NormalGroupCollapse.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.ExplorerBar.NormalGroupCollapse.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupCollapse.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 DrawVisualStyleElementExplorerBarNormalGroupCollapse1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.ExplorerBar.NormalGroupCollapse.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.ExplorerBar.NormalGroupCollapse.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupCollapse.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作成できます。

適用対象