VisualStyleElement.Tab.TabItemLeftEdge Sınıf

Tanım

VisualStyleElement Bir sekme denetiminin üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan her durumu için nesneler sağlar. Bu sınıf devralınamaz.

public: ref class VisualStyleElement::Tab::TabItemLeftEdge abstract sealed
public static class VisualStyleElement.Tab.TabItemLeftEdge
type VisualStyleElement.Tab.TabItemLeftEdge = class
Public Class VisualStyleElement.Tab.TabItemLeftEdge
Devralma
VisualStyleElement.Tab.TabItemLeftEdge

Ö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 eDrawVisualStyleElementTabTabItemLeftEdge1PaintEventArgs.

public void DrawVisualStyleElementTabTabItemLeftEdge1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Tab.TabItemLeftEdge.Normal))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Tab.TabItemLeftEdge.Normal);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Tab.TabItemLeftEdge.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 DrawVisualStyleElementTabTabItemLeftEdge1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Tab.TabItemLeftEdge.Normal)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Tab.TabItemLeftEdge.Normal)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Tab.TabItemLeftEdge.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ın her özelliği VisualStyleElement.Tab.TabItemLeftEdge , üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan bir sekme denetiminin farklı bir durumu için bir döndürür VisualStyleElement .

Özellikler

Disabled

Üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan devre dışı bırakılmış bir sekme denetimini temsil eden görsel stil öğesini alır.

Hot

Üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan bir sık erişimli sekme denetimini temsil eden görsel stil öğesini alır.

Normal

Üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan normal bir sekme denetimini temsil eden görsel stil öğesini alır.

Pressed

Üst ve sağ kenarlıklarını diğer sekme denetimleriyle paylaşan basılmış sekme denetimini temsil eden görsel stil öğesini alır.

Şunlara uygulanır

Ayrıca bkz.