VisualStyleElement.Tab.TopTabItemBothEdges Klasa

Definicja

Udostępnia kontrolkę VisualStyleElement tabulatora, która udostępnia jej dolną krawędź inną kontrolką tabulacji. Klasa ta nie może być dziedziczona.

public: ref class VisualStyleElement::Tab::TopTabItemBothEdges abstract sealed
public static class VisualStyleElement.Tab.TopTabItemBothEdges
type VisualStyleElement.Tab.TopTabItemBothEdges = class
Public Class VisualStyleElement.Tab.TopTabItemBothEdges
Dziedziczenie
VisualStyleElement.Tab.TopTabItemBothEdges

Przykłady

W poniższym przykładzie kodu pokazano, jak utworzyć obiekt VisualStyleRenderer z właściwością zwróconą VisualStyleElementNormal przez właściwość . Aby uruchomić ten przykład, wklej go do formularza systemu Windows. Obsłuż zdarzenie formularza Paint i wywołaj metodę DrawVisualStyleElementTabTopTabItemBothEdges1 z Paint metody obsługi zdarzeń, przekazując e jako PaintEventArgs.

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

Uwagi

Właściwość NormalVisualStyleElement.Tab.TopTabItemBothEdges klasy zwraca VisualStyleElement kontrolkę, która reprezentuje kontrolkę tabulacji, która współudzieli obramowanie dolne z inną kontrolką tabulacji.

Właściwości

Normal

Pobiera element stylu wizualizacji reprezentujący kontrolkę tabulacji, która współudzieli obramowanie dolne z inną kontrolką karty.

Dotyczy

Zobacz też