Aracılığıyla paylaş


VisualStyleElement.ExplorerBar.SpecialGroupExpand Sınıf

Tanım

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

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

Ö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 yöntemini olarak geçirerek olay işleme yönteminden DrawVisualStyleElementExplorerBarSpecialGroupExpand1 çağırın PaintePaintEventArgs.

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

Açıklamalar

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

Özellikler

Name Description
Hot

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

Normal

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

Pressed

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

Şunlara uygulanır

Ayrıca bkz.