共用方式為


VisualStyleElement.StartPanel.LogOff 類別

定義

提供VisualStyleElement選單底部邊框的設定。 無法繼承這個類別。

public: ref class VisualStyleElement::StartPanel::LogOff abstract sealed
public static class VisualStyleElement.StartPanel.LogOff
type VisualStyleElement.StartPanel.LogOff = class
Public Class VisualStyleElement.StartPanel.LogOff
繼承
VisualStyleElement.StartPanel.LogOff

範例

以下程式碼範例示範如何用屬性VisualStyleElement回傳Normal的 來建立 aVisualStyleRenderer。 要執行這個範例,請將它貼到 Windows 表單中。 處理表單的Paint事件,並從DrawVisualStyleElementStartPanelLogOff1事件處理方法呼叫該Paint方法,傳遞ePaintEventArgs

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

備註

Normal類別的VisualStyleElement.StartPanel.LogOff屬性會回傳代表開始選單底部邊界的 aVisualStyleElement

屬性

名稱 Description
Normal

會有一個視覺風格元素,代表 開始 選單的底部邊框。

適用於

另請參閱