SystemPens.GradientInactiveCaption プロパティ

定義

アクティブでないウィンドウのタイトル バーに適用される色のグラデーションにおいて最も明るい色を表す Pen を取得します。

public:
 static property System::Drawing::Pen ^ GradientInactiveCaption { System::Drawing::Pen ^ get(); };
public static System.Drawing.Pen GradientInactiveCaption { get; }
member this.GradientInactiveCaption : System.Drawing.Pen
Public Shared ReadOnly Property GradientInactiveCaption As Pen

プロパティ値

Pen

アクティブでないウィンドウのタイトル バーに適用される色のグラデーションにおいて最も明るい色を表す Pen

次のコード例は、このプロパティの使用方法を GradientInactiveCaption 示しています。 この例を実行するには、Windows フォームに貼り付けます。 フォームのPaintイベントを処理し、イベント処理メソッドからメソッドをPaint呼び出しDrawWithGradientInactiveCaptionPen、次のようにPaintEventArgs渡しますe

private void DrawWithGradientInactiveCaptionPen(PaintEventArgs e)
{
    Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
    e.Graphics.DrawRectangle(SystemPens.GradientInactiveCaption, rectangle1);
}
Private Sub DrawWithGradientInactiveCaptionPen(ByVal e As PaintEventArgs) 
    Dim rectangle1 As New Rectangle(10, 10, 100, 100)
    e.Graphics.DrawRectangle(SystemPens.GradientInactiveCaption, rectangle1)

End Sub

適用対象