SystemPens.WindowText プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SystemPens.WindowText プロパティの意味・解説 

SystemPens.WindowText プロパティ

ウィンドウのクライアント領域のテキストの色を表す Pen を取得します。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Dim value As Pen

value = SystemPens.WindowText
public static Pen WindowText { get;
 }
public:
static property Pen^ WindowText {
    Pen^ get ();
}
/** @property */
public static Pen get_WindowText ()

プロパティ値
ウィンドウのクライアント領域のテキストの色を表す Pen。

使用例使用例

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

    Private Sub DrawWithWindowTextPen(ByVal
 e As PaintEventArgs) 
        Dim rectangle1 As New
 Rectangle(10, 10, 100, 100)
        e.Graphics.DrawRectangle(SystemPens.WindowText, rectangle1)
    
    End Sub
End Class
private void DrawWithWindowTextPen(PaintEventArgs
 e)
{
    Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
    e.Graphics.DrawRectangle(SystemPens.WindowText, rectangle1);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

SystemPens.WindowText プロパティのお隣キーワード

   

英語⇒日本語
日本語⇒英語
   



SystemPens.WindowText プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS