SystemPens.ActiveCaption 속성

정의

활성 창 제목 표시줄의 배경색인 Pen를 가져옵니다.Gets a Pen that is the color of the background of the active window's title bar.

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

속성 값

Pen

활성 창 제목 표시줄의 배경색인 Pen입니다.A Pen that is the color of the background of the active window's title bar.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 ActiveCaption 속성입니다.The following code example demonstrates how to use the ActiveCaption property. 이 예제를 실행 하려면 Windows 폼에 붙여 넣습니다.To run this example, paste it into a Windows Form. 양식의 처리 Paint 이벤트 및 호출 합니다 DrawWithActiveCaptionPen 메서드에서 Paint 전달 하는 이벤트 처리 메서드를 e 으로 PaintEventArgs입니다.Handle the form's Paint event and call the DrawWithActiveCaptionPen method from the Paint event-handling method, passing e as PaintEventArgs.

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

End Sub

적용 대상