VisualStyleElement.Window.SmallMinCaption.Inactive Eigenschap

Definitie

Hiermee wordt een visueel stijlelement opgehaald dat de titelbalk vertegenwoordigt van een inactief klein venster dat wordt geminimaliseerd.

public:
 static property System::Windows::Forms::VisualStyles::VisualStyleElement ^ Inactive { System::Windows::Forms::VisualStyles::VisualStyleElement ^ get(); };
public static System.Windows.Forms.VisualStyles.VisualStyleElement Inactive { get; }
static member Inactive : System.Windows.Forms.VisualStyles.VisualStyleElement
Public Shared ReadOnly Property Inactive As VisualStyleElement

Waarde van eigenschap

Een VisualStyleElement die de titelbalk vertegenwoordigt van een inactief klein venster dat wordt geminimaliseerd.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u een met de VisualStyleRenderer eigenschap geretourneerde VisualStyleElement code Inactive maakt. Als u dit voorbeeld wilt uitvoeren, plakt u het in een Windows Formulier. De gebeurtenis van Paint het formulier afhandelen en de DrawVisualStyleElementWindowSmallMinCaption2 methode aanroepen vanuit de Paint methode voor gebeurtenisafhandeling, waarbij deze wordt doorgegeven e als PaintEventArgs.

public void DrawVisualStyleElementWindowSmallMinCaption2(PaintEventArgs e)
{
    if (VisualStyleRenderer.IsElementDefined(
        VisualStyleElement.Window.SmallMinCaption.Inactive))
    {
        VisualStyleRenderer renderer =
             new VisualStyleRenderer(VisualStyleElement.Window.SmallMinCaption.Inactive);
        Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
        renderer.DrawBackground(e.Graphics, rectangle1);
        e.Graphics.DrawString("VisualStyleElement.Window.SmallMinCaption.Inactive",
             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 DrawVisualStyleElementWindowSmallMinCaption2(ByVal e As PaintEventArgs)
    If (VisualStyleRenderer.IsElementDefined( _
     VisualStyleElement.Window.SmallMinCaption.Inactive)) Then
        Dim renderer As New VisualStyleRenderer _
          (VisualStyleElement.Window.SmallMinCaption.Inactive)
        Dim rectangle1 As New Rectangle(10, 50, 50, 50)
        renderer.DrawBackground(e.Graphics, rectangle1)
        e.Graphics.DrawString("VisualStyleElement.Window.SmallMinCaption.Inactive", _
          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

Opmerkingen

U kunt de VisualStyleElement geretourneerde eigenschap Inactive gebruiken om een VisualStyleRenderer.

Van toepassing op