VisualStyleElement.StartPanel.PlaceList Classe

Definizione

Specifica un oggetto VisualStyleElement per lo sfondo del lato destro del menu Start. La classe non può essere ereditata.

public: ref class VisualStyleElement::StartPanel::PlaceList abstract sealed
public static class VisualStyleElement.StartPanel.PlaceList
type VisualStyleElement.StartPanel.PlaceList = class
Public Class VisualStyleElement.StartPanel.PlaceList
Ereditarietà
VisualStyleElement.StartPanel.PlaceList

Esempio

Nell'esempio di codice seguente viene illustrato come creare un VisualStyleRenderer oggetto con l'oggetto VisualStyleElement restituito dalla Normal proprietà . Per eseguire questo esempio, incollarlo in un Windows Form. Gestire l'evento del Paint modulo e chiamare il DrawVisualStyleElementStartPanelPlaceList1 metodo dal Paint metodo di gestione degli eventi, passando e come PaintEventArgs.

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

Commenti

La Normal proprietà della VisualStyleElement.StartPanel.PlaceList classe restituisce un VisualStyleElement oggetto che rappresenta lo sfondo del lato destro del menu Start .

Proprietà

Normal

Ottiene un elemento dello stile di visualizzazione che rappresenta lo sfondo del lato destro del menu Start.

Si applica a

Vedi anche