SystemPens.ActiveBorder 속성

정의

활성 창의 테두리 색인 Pen을 가져옵니다.Gets a Pen that is the color of the active window's border.

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

속성 값

Pen

활성 창의 테두리 색인 Pen입니다.A Pen that is the color of the active window's border.

예제

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

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

End Sub

적용 대상