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

Примеры

В следующем примере кода показано, как создать VisualStyleRenderer объект с VisualStyleElement возвращаемым свойством Active . Чтобы запустить этот пример, вставьте его в Форму Windows Forms. Обработайте событие формы Paint и вызовите DrawVisualStyleElementWindowSmallFrameBottom1 метод из Paint метода обработки событий, передавая e как 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

Комментарии

Каждое VisualStyleElement.Window.SmallFrameBottom свойство класса получает VisualStyleElement для другого состояния нижней границы небольшого окна, например окна инструментов.

Свойства

Active

Возвращает элемент визуального стиля, представляющего нижнюю границу небольшого активного окна.

Inactive

Возвращает элемент визуального стиля, представляющего нижнюю границу небольшого неактивного окна.

Применяется к

См. также раздел