VisualStyleElement.Window.SmallFrameBottom Sınıf

Tanım

VisualStyleElement Küçük bir pencerenin alt kenarlarının her durumu için nesneler sağlar. Bu sınıf devralınamaz.

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

Örnekler

Aşağıdaki kod örneği, özelliği tarafından Active döndürülen ile VisualStyleElement nasıl oluşturulacağını VisualStyleRenderer gösterir. Bu örneği çalıştırmak için windows formuna yapıştırın. Formun Paint olayını işleyip yöntemini olay işleme yönteminden Paint olarak geçirerek çağırın eDrawVisualStyleElementWindowSmallFrameBottom1PaintEventArgs.

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

Açıklamalar

sınıfın VisualStyleElement.Window.SmallFrameBottom her özelliği, araç penceresi gibi küçük bir pencerenin alt kenarlık farklı bir durumu için bir alır VisualStyleElement .

Özellikler

Active

Etkin küçük bir pencerenin alt kenarını temsil eden görsel stil öğesini alır.

Inactive

Etkin olmayan küçük bir pencerenin alt kenarını temsil eden görsel stil öğesini alır.

Şunlara uygulanır

Ayrıca bkz.