VisualStyleElement.Window.SmallFrameLeft クラス

定義

小さいウィンドウの左境界線の各状態用に VisualStyleElement オブジェクトを提供します。 このクラスは継承できません。

public: ref class VisualStyleElement::Window::SmallFrameLeft abstract sealed
public static class VisualStyleElement.Window.SmallFrameLeft
type VisualStyleElement.Window.SmallFrameLeft = class
Public Class VisualStyleElement.Window.SmallFrameLeft
継承
VisualStyleElement.Window.SmallFrameLeft

次のコード例では、 プロパティによって返される を使用して をVisualStyleRendererVisualStyleElement作成する方法をActive示します。 この例を実行するには、Windows フォームに貼り付けます。 フォームのPaintイベントを処理し、イベント処理メソッドから メソッドをPaint呼び出しDrawVisualStyleElementWindowSmallFrameLeft1、 を としてPaintEventArgs渡しますe

public void DrawVisualStyleElementWindowSmallFrameLeft1(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Window.SmallFrameLeft.Active))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Window.SmallFrameLeft.Active);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Window.SmallFrameLeft.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 DrawVisualStyleElementWindowSmallFrameLeft1(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Window.SmallFrameLeft.Active)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Window.SmallFrameLeft.Active)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Window.SmallFrameLeft.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.SmallFrameLeft 、ツール ウィンドウなど、小さなウィンドウの左罫線の異なる状態に対して を返 VisualStyleElement します。

プロパティ

Active

アクティブな小さいウィンドウの左境界線を表す visual スタイル要素を取得します。

Inactive

アクティブでない小さいウィンドウの左境界線を表す visual スタイル要素を取得します。

適用対象

こちらもご覧ください