VisualStyleElement.Page.Down Třída

Definice

Poskytuje VisualStyleElement objekty pro každý stav indikátoru dolů v ovládacím prvku up-down nebo spin box. Tato třída se nemůže dědit.

public: ref class VisualStyleElement::Page::Down abstract sealed
public static class VisualStyleElement.Page.Down
type VisualStyleElement.Page.Down = class
Public Class VisualStyleElement.Page.Down
Dědičnost
VisualStyleElement.Page.Down

Příklady

Následující příklad kódu ukazuje, jak vytvořit VisualStyleRenderer s VisualStyleElement vrácenou Normal vlastností. Pokud chcete tento příklad spustit, vložte ho do formuláře Windows Form. Zpracování události formuláře Paint a volání DrawVisualStyleElement_Page_Down1 metody z Paint metody zpracování událostí, předání e jako PaintEventArgs.

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

Poznámky

Každá vlastnost VisualStyleElement.Page.Down třídy získá VisualStyleElement pro jiný stav indikátoru dolů v ovládacím prvku nahoru-dolů nebo číselník.

Vlastnosti

Disabled

Získá vizuální styl prvek, který představuje zakázaný stav indikátoru dolů v ovládacím prvku nahoru-dolů nebo číselník.

Hot

Získá vizuální styl element, který představuje indikátor dolů up-down nebo spin box ovládací prvek v horkém stavu.

Normal

Získá vizuální styl element, který představuje indikátor dolů up-down nebo spin box ovládací prvek v normálním stavu.

Pressed

Získá vizuální styl element, který představuje indikátor dolů nahoru-dolů nebo číselník ve stisknutém stavu.

Platí pro

Viz také