VisualStyleElement.StartPanel.MorePrograms Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Fornece um VisualStyleElement para o pano de fundo do item Todos os Programas no menu Iniciar . Esta classe não pode ser herdada.
public: ref class VisualStyleElement::StartPanel::MorePrograms abstract sealed
public static class VisualStyleElement.StartPanel.MorePrograms
type VisualStyleElement.StartPanel.MorePrograms = class
Public Class VisualStyleElement.StartPanel.MorePrograms
- Herança
-
VisualStyleElement.StartPanel.MorePrograms
Exemplos
O seguinte exemplo de código demonstra como criar um VisualStyleRenderer com o VisualStyleElement devolvido pela Normal propriedade. Para executar este exemplo, cole-o num formulário do Windows. Trate o evento do Paint formulário e chame o DrawVisualStyleElementStartPanelMorePrograms1 método a partir do Paint método de gestão de eventos, passando e como PaintEventArgs.
public void DrawVisualStyleElementStartPanelMorePrograms1(PaintEventArgs e)
{
if (VisualStyleRenderer.IsElementDefined(
VisualStyleElement.StartPanel.MorePrograms.Normal))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer(VisualStyleElement.StartPanel.MorePrograms.Normal);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
renderer.DrawBackground(e.Graphics, rectangle1);
e.Graphics.DrawString("VisualStyleElement.StartPanel.MorePrograms.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 DrawVisualStyleElementStartPanelMorePrograms1(ByVal e As PaintEventArgs)
If (VisualStyleRenderer.IsElementDefined( _
VisualStyleElement.StartPanel.MorePrograms.Normal)) Then
Dim renderer As New VisualStyleRenderer _
(VisualStyleElement.StartPanel.MorePrograms.Normal)
Dim rectangle1 As New Rectangle(10, 50, 50, 50)
renderer.DrawBackground(e.Graphics, rectangle1)
e.Graphics.DrawString("VisualStyleElement.StartPanel.MorePrograms.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
Observações
A Normal propriedade da VisualStyleElement.StartPanel.MorePrograms classe devolve a VisualStyleElement que representa o fundo do elemento do menu Todos os Programas .
Propriedades
| Name | Description |
|---|---|
| Normal |
Recebe um elemento de estilo visual que representa o fundo do elemento do menu Todos os Programas . |