VisualStyleElement.StartPanel.MoreProgramsArrow Osztály

Definíció

A VisualStyleElement menü Minden program nyíl minden állapotához biztosít objektumokat. Ez az osztály nem örökölhető.

public: ref class VisualStyleElement::StartPanel::MoreProgramsArrow abstract sealed
public static class VisualStyleElement.StartPanel.MoreProgramsArrow
type VisualStyleElement.StartPanel.MoreProgramsArrow = class
Public Class VisualStyleElement.StartPanel.MoreProgramsArrow
Öröklődés
VisualStyleElement.StartPanel.MoreProgramsArrow

Példák

Az alábbi példakód bemutatja, hogyan hozhat létre egy VisualStyleRenderer tulajdonság által visszaadott VisualStyleElement kóddalNormal. A példa futtatásához illessze be egy Windows űrlapba. Kezelje az űrlap eseményét Paint , és hívja meg a DrawVisualStyleElementStartPanelMoreProgramsArrow1 metódust az Paint eseménykezelési metódusból, és e adja át a következőt PaintEventArgs: .

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

Megjegyzések

Az osztály minden tulajdonsága VisualStyleElement.StartPanel.MoreProgramsArrow a VisualStyleElement nyíl egy másik állapotát adja vissza.

Tulajdonságok

Name Description
Hot

Olyan vizuális stíluselemet kap, amely a Minden program nyilat jelöli a gyakori elérésű állapotban.

Normal

Olyan vizuális stíluselemet kap, amely a Minden program nyilat jelöli normál állapotban.

Pressed

Beolvas egy vizuális stíluselemet, amely a Minden program nyilat jelöli a lenyomott állapotban.

A következőre érvényes:

Lásd még