VisualStyleElement.Window.SmallFrameBottom Osztály

Definíció

Objektumokat biztosít VisualStyleElement egy kis ablak alsó szegélyének minden állapotához. Ez az osztály nem örökölhető.

public: ref class VisualStyleElement::Window::SmallFrameBottom abstract sealed
public static class VisualStyleElement.Window.SmallFrameBottom
type VisualStyleElement.Window.SmallFrameBottom = class
Public Class VisualStyleElement.Window.SmallFrameBottom
Öröklődés
VisualStyleElement.Window.SmallFrameBottom

Példák

Az alábbi példakód bemutatja, hogyan hozhat létre egy VisualStyleRenderer tulajdonság által visszaadott VisualStyleElement kóddalActive. A példa futtatásához illessze be egy Windows űrlapba. Kezelje az űrlap eseményét Paint , és hívja meg a DrawVisualStyleElementWindowSmallFrameBottom1 metódust az Paint eseménykezelési metódusból, és e adja át a következőt PaintEventArgs: .

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

Megjegyzések

Az osztály minden tulajdonsága VisualStyleElement.Window.SmallFrameBottom egy kis ablak alsó szegélyének egy másik állapotát kapja VisualStyleElement meg, például egy szerszámablakot.

Tulajdonságok

Name Description
Active

Egy olyan vizuális stíluselemet kap, amely egy aktív kis ablak alsó szegélyét jelöli.

Inactive

Beolvas egy olyan vizuális stíluselemet, amely egy inaktív kis ablak alsó szegélyét jelöli.

A következőre érvényes:

Lásd még