SystemPens.InactiveCaptionText 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
비활성 창 제목 표시줄의 텍스트 색인 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입니다.
예제
다음 코드 예제를 사용 하는 방법에 설명 합니다 InactiveCaptionText 속성입니다. 이 예제를 실행 하려면 Windows 폼에 붙여 넣습니다. 양식의 처리 Paint 이벤트 및 호출 합니다 DrawWithInactiveCaptionTextPen
메서드에서 Paint 전달 하는 이벤트 처리 메서드를 e
으로 PaintEventArgs입니다.
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