Freigeben über


VisualStyleElement.ExplorerBar.SpecialGroupExpand Klasse

Definition

Stellt VisualStyleElement Objekte für jeden Status der Erweiterungsschaltfläche einer speziellen Gruppe von Elementen in der Explorer-Leiste bereit. Diese Klasse kann nicht vererbt werden.

public: ref class VisualStyleElement::ExplorerBar::SpecialGroupExpand abstract sealed
public static class VisualStyleElement.ExplorerBar.SpecialGroupExpand
type VisualStyleElement.ExplorerBar.SpecialGroupExpand = class
Public Class VisualStyleElement.ExplorerBar.SpecialGroupExpand
Vererbung
VisualStyleElement.ExplorerBar.SpecialGroupExpand

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie sie eine VisualStyleRenderer mit der VisualStyleElement von der Normal Eigenschaft zurückgegebenen Eigenschaft erstellen. Zum Ausführen dieses Beispiels fügen Sie es in ein Windows Form-Formular ein. Behandeln Sie das Ereignis des Formulars Paint , und rufen Sie die DrawVisualStyleElementExplorerBarSpecialGroupExpand1 Methode aus der Paint Ereignisbehandlungsmethode auf und übergeben als ePaintEventArgs.

public void DrawVisualStyleElementExplorerBarSpecialGroupExpand1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.ExplorerBar.SpecialGroupExpand.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.ExplorerBar.SpecialGroupExpand.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.SpecialGroupExpand.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 DrawVisualStyleElementExplorerBarSpecialGroupExpand1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.ExplorerBar.SpecialGroupExpand.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.ExplorerBar.SpecialGroupExpand.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.ExplorerBar.SpecialGroupExpand.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

Hinweise

Jede Eigenschaft der VisualStyleElement.ExplorerBar.SpecialGroupExpand Klasse ruft einen VisualStyleElement anderen Status der Erweiterungsschaltfläche einer speziellen Gruppe von Elementen in der Explorer-Leiste ab, z. B. die Gruppe "Musikaufgaben " im Windows-Explorer.

Eigenschaften

Name Beschreibung
Hot

Ruft ein visuelles Stilelement ab, das eine Schaltfläche für die heiße Erweiterung einer speziellen Gruppe von Elementen in der Explorer-Leiste darstellt.

Normal

Ruft ein visuelles Stilelement ab, das eine normale Erweiterungsschaltfläche einer speziellen Gruppe von Elementen in der Explorer-Leiste darstellt.

Pressed

Ruft ein visuelles Stilelement, das eine gedrückte Erweiterungsschaltfläche einer speziellen Gruppe von Elementen in der Explorer-Leiste darstellt.

Gilt für:

Weitere Informationen