다음을 통해 공유


SystemPens.InactiveCaptionText 속성

정의

Pen 비활성 창의 제목 표시줄에 있는 텍스트 색을 가져옵니다.

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

속성 값

Pen

Pen 비활성 창의 제목 표시줄에 있는 텍스트 색입니다.

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 InactiveCaptionText . 이 예제를 실행하려면 Windows Form에 붙여넣습니다. 양식의 Paint 이벤트를 처리하고 이벤트 처리 메서드에서 Paint 메서드를 호출 DrawWithInactiveCaptionTextPen 하여 다음과 같이 PaintEventArgs전달 e 합니다.

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

End Sub

적용 대상