SystemPens.WindowText 속성

정의

창의 클라이언트 영역에 있는 텍스트 색인 Pen을 가져옵니다.

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

속성 값

Pen

창의 클라이언트 영역에 있는 텍스트 색인 Pen입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 WindowText 속성입니다. 이 예제를 실행 하려면 Windows 폼에 붙여 넣습니다. 양식의 처리 Paint 이벤트 및 호출 합니다 DrawWithWindowText 메서드에서 Paint 전달 하는 이벤트 처리 메서드를 e 으로 PaintEventArgs입니다.

private void DrawWithWindowTextPen(PaintEventArgs e)
{
    Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
    e.Graphics.DrawRectangle(SystemPens.WindowText, rectangle1);
}
    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

적용 대상