VisualStyleElement.ExplorerBar.NormalGroupExpand Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt VisualStyleElement Objekte für jeden Status der Erweiterungsschaltfläche einer allgemeinen Gruppe von Elementen in der Explorer-Leiste bereit. Diese Klasse kann nicht vererbt werden.
public: ref class VisualStyleElement::ExplorerBar::NormalGroupExpand abstract sealed
public static class VisualStyleElement.ExplorerBar.NormalGroupExpand
type VisualStyleElement.ExplorerBar.NormalGroupExpand = class
Public Class VisualStyleElement.ExplorerBar.NormalGroupExpand
- Vererbung
-
VisualStyleElement.ExplorerBar.NormalGroupExpand
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 DrawVisualStyleElementExplorerBarNormalGroupExpand1 Methode aus der Paint Ereignisbehandlungsmethode auf und übergeben als ePaintEventArgs.
public void DrawVisualStyleElementExplorerBarNormalGroupExpand1(PaintEventArgs e)
{
if (VisualStyleRenderer.IsElementDefined(
VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer(VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
renderer.DrawBackground(e.Graphics, rectangle1);
e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupExpand.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 DrawVisualStyleElementExplorerBarNormalGroupExpand1(ByVal e As PaintEventArgs)
If (VisualStyleRenderer.IsElementDefined( _
VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal)) Then
Dim renderer As New VisualStyleRenderer _
(VisualStyleElement.ExplorerBar.NormalGroupExpand.Normal)
Dim rectangle1 As New Rectangle(10, 50, 50, 50)
renderer.DrawBackground(e.Graphics, rectangle1)
e.Graphics.DrawString("VisualStyleElement.ExplorerBar.NormalGroupExpand.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.NormalGroupExpand Klasse erhält einen VisualStyleElement anderen Status der Erweiterungsschaltfläche einer allgemeinen Gruppe von Elementen in der Explorer-Leiste, z. B. die Gruppe "Datei- und Ordneraufgaben " im Windows-Explorer.
Eigenschaften
| Name | Beschreibung |
|---|---|
| Hot |
Ruft ein visuelles Stilelement ab, das eine Schaltfläche für die heiße Erweiterung einer allgemeinen Gruppe von Elementen in der Explorer-Leiste darstellt. |
| Normal |
Ruft ein visuelles Stilelement ab, das eine normale Erweiterungsschaltfläche einer allgemeinen Gruppe von Elementen in der Explorer-Leiste darstellt. |
| Pressed |
Ruft ein visuelles Stilelement, das eine gedrückte Erweiterungsschaltfläche einer allgemeinen Gruppe von Elementen in der Explorer-Leiste darstellt. |