共用方式為


VisualStyleElement.Window.SmallFrameBottom 類別

定義

提供 VisualStyleElement 小視窗底部邊界的每個狀態的物件。 無法繼承這個類別。

public: ref class VisualStyleElement::Window::SmallFrameBottom abstract sealed
public static class VisualStyleElement.Window.SmallFrameBottom
type VisualStyleElement.Window.SmallFrameBottom = class
Public Class VisualStyleElement.Window.SmallFrameBottom
繼承
VisualStyleElement.Window.SmallFrameBottom

範例

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

public void DrawVisualStyleElementWindowSmallFrameBottom1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Window.SmallFrameBottom.Active))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Window.SmallFrameBottom.Active);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Window.SmallFrameBottom.Active",
             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 DrawVisualStyleElementWindowSmallFrameBottom1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Window.SmallFrameBottom.Active)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Window.SmallFrameBottom.Active)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Window.SmallFrameBottom.Active", _
          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.Window.SmallFrameBottom 每個屬性對於小視窗(例如工具視窗)底部邊界的不同狀態都會有 a VisualStyleElement

屬性

名稱 Description
Active

會獲得一個視覺風格元素,代表一個活動中小視窗的底部邊界。

Inactive

會獲得一個視覺樣式元素,代表一個非啟用小視窗的底部邊界。

適用於

另請參閱