VisualStyleElement.ExplorerBar.NormalGroupCollapse クラス

定義

エクスプローラー バーにある共通項目グループの閉じるボタンの各状態用の VisualStyleElement オブジェクトを提供します。 このクラスは継承できません。

public: ref class VisualStyleElement::ExplorerBar::NormalGroupCollapse abstract sealed
public static class VisualStyleElement.ExplorerBar.NormalGroupCollapse
type VisualStyleElement.ExplorerBar.NormalGroupCollapse = class
Public Class VisualStyleElement.ExplorerBar.NormalGroupCollapse
継承
VisualStyleElement.ExplorerBar.NormalGroupCollapse

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

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

注釈

クラスのVisualStyleElement.ExplorerBar.NormalGroupCollapse各プロパティは、Windows エクスプローラーの [ファイルタスク] グループや [フォルダー タスク] グループなど、エクスプローラー バー内の一般的な項目グループの折りたたみボタンの異なる状態の を取得VisualStyleElementします。

プロパティ

Hot

エクスプローラー バーにある共通項目グループのホットな閉じるボタンを表す visual スタイル要素を取得します。

Normal

エクスプローラー バーにある共通項目グループの通常の閉じるボタンを表す visual スタイル要素を取得します。

Pressed

エクスプローラー バーにある共通項目グループの押された状態の閉じるボタンを表す visual スタイル要素を取得します。

適用対象

こちらもご覧ください