VisualStyleElement.StartPanel.MoreProgramsArrow 类       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为“开始”菜单中“所有程序”箭头的每种状态提供 VisualStyleElement 对象。 此类不能被继承。
public: ref class VisualStyleElement::StartPanel::MoreProgramsArrow abstract sealedpublic static class VisualStyleElement.StartPanel.MoreProgramsArrowtype VisualStyleElement.StartPanel.MoreProgramsArrow = classPublic Class VisualStyleElement.StartPanel.MoreProgramsArrow- 继承
- 
				VisualStyleElement.StartPanel.MoreProgramsArrow
示例
下面的代码示例演示如何使用 VisualStyleElement 属性返回的 Normal 创建 VisualStyleRenderer 。 若要运行此示例,请将其粘贴到 Windows 窗体中。 处理窗体的事件Paint,并从Paint事件处理方法调用 DrawVisualStyleElementStartPanelMoreProgramsArrow1 方法,作为 ePaintEventArgs传递。
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
注解
类的每个属性VisualStyleElement.StartPanel.MoreProgramsArrow返回 “所有程序” 箭头的不同状态的 。VisualStyleElement
属性
| Hot | 获取表示处于热状态的“所有程序”箭头的视觉样式元素。 | 
| Normal | 获取表示处于正常状态的“所有程序”箭头的视觉样式元素。 | 
| Pressed | 获取表示处于按下状态的“所有程序”箭头的视觉样式元素。 |