VisualStyleElement.ExplorerBar.NormalGroupHead Sınıf

Tanım

Gezgin Çubuğu'ndaki ortak bir öğe grubunun başlık çubuğu için bir VisualStyleElement sağlar. Bu sınıf devralınamaz.

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

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

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

Normal sınıfının özelliğiVisualStyleElement.ExplorerBar.NormalGroupHead, Windows Gezgini'ndeki Dosya ve Klasör Görevleri grubu gibi Gezgin Çubuğu'ndaki ortak bir öğe grubunun başlık çubuğunu temsil eden bir VisualStyleElement alır.

Özellikler

Normal

Gezgin Çubuğu'ndaki ortak bir öğe grubunun başlık çubuğunu temsil eden görsel stil öğesini alır.

Şunlara uygulanır

Ayrıca bkz.