SystemPens.GradientActiveCaption 속성

정의

활성 창 제목 표시줄의 색 그라데이션에서 가장 옅은 색인 Pen을 가져옵니다.Gets a Pen that is the lightest color in the color gradient of an active window's title bar.

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

속성 값

Pen

활성 창 제목 표시줄의 색 그라데이션에서 가장 옅은 색인 Pen입니다.A Pen that is the lightest color in the color gradient of an active window's title bar.

예제

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

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

End Sub

적용 대상