ControlPaint.DrawSelectionFrame 메서드

정의

지정된 그래픽 표면에 지정된 상태로 지정된 내부 및 외부 크기와 배경색을 사용하여 표준 선택 프레임을 그립니다.

public:
 static void DrawSelectionFrame(System::Drawing::Graphics ^ graphics, bool active, System::Drawing::Rectangle outsideRect, System::Drawing::Rectangle insideRect, System::Drawing::Color backColor);
public static void DrawSelectionFrame (System.Drawing.Graphics graphics, bool active, System.Drawing.Rectangle outsideRect, System.Drawing.Rectangle insideRect, System.Drawing.Color backColor);
static member DrawSelectionFrame : System.Drawing.Graphics * bool * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Drawing.Color -> unit
Public Shared Sub DrawSelectionFrame (graphics As Graphics, active As Boolean, outsideRect As Rectangle, insideRect As Rectangle, backColor As Color)

매개 변수

graphics
Graphics

그릴 Graphics입니다.

active
Boolean

선택 프레임을 활성 상태로 그리려면 true이고, 그렇지 않으면 false입니다.

outsideRect
Rectangle

선택 프레임의 외부 경계를 나타내는 Rectangle입니다.

insideRect
Rectangle

선택 프레임의 내부 경계를 나타내는 Rectangle입니다.

backColor
Color

프레임 뒤에 나타나는 배경의 Color입니다.

설명

선택 프레임은 디자인 타임에 선택한 구성 요소 주위에 그려지는 프레임입니다.

매개 backColor 변수는 항상 배경에 표시되도록 프레임의 채우기 색을 계산하는 데 사용됩니다.

매개 변수가 active 설정된 true경우 선택 프레임은 구성 요소가 활성화되었음을 나타내는 빗살 무늬 표시 집합으로 그려집니다. 그렇지 않으면 선택 프레임은 구현에 따라 점선 패턴 또는 아무 것도 그려지지 않습니다.

적용 대상