VisualStyleElement.ExplorerBar.SpecialGroupCollapse Sınıf

Tanım

VisualStyleElement Gezgin Çubuğu'ndaki özel bir öğe grubunun daralt düğmesinin her durumu için nesneler sağlar. Bu sınıf devralınamaz.

public: ref class VisualStyleElement::ExplorerBar::SpecialGroupCollapse abstract sealed
public static class VisualStyleElement.ExplorerBar.SpecialGroupCollapse
type VisualStyleElement.ExplorerBar.SpecialGroupCollapse = class
Public Class VisualStyleElement.ExplorerBar.SpecialGroupCollapse
Devralma
VisualStyleElement.ExplorerBar.SpecialGroupCollapse

Örnekler

Aşağıdaki kod örneği, özelliği tarafından Normal döndürülen ile VisualStyleElement nasıl oluşturulacağını VisualStyleRenderer gösterir. Bu örneği çalıştırmak için windows formuna yapıştırın. Formun Paint olayını işleyip olarak geçirerek olay işleme yönteminden Paint yöntemini çağırın eDrawVisualStyleElementExplorerBarSpecialGroupCollapse1PaintEventArgs.

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

Açıklamalar

Sınıfın VisualStyleElement.ExplorerBar.SpecialGroupCollapse her özelliği, Windows Gezgini'ndeki Müzik Görevleri grubu gibi Gezgin Çubuğu'ndaki özel bir öğe grubunun daralt düğmesinin farklı bir durumu için bir alırVisualStyleElement.

Özellikler

Hot

Gezgin Çubuğu'ndaki özel bir öğe grubunun etkin daraltma düğmesini temsil eden görsel stil öğesini alır.

Normal

Gezgin Çubuğu'ndaki özel bir öğe grubunun normal daraltma düğmesini temsil eden görsel stil öğesini alır.

Pressed

Gezgin Çubuğu'ndaki özel bir öğe grubunun basılı daraltma düğmesini temsil eden görsel stil öğesini alır.

Şunlara uygulanır

Ayrıca bkz.