폐관수련
[C#] ControlPaint.DrawReversibleFrame 본문
public static void DrawReversibleFrame (System.Drawing.Rectangle rectangle, System.Drawing.Color backColor, System.Windows.Forms.FrameStyle style);
Parameter
- rectangle : 그릴 사각형의 크기
- backColor : 프레임 뒤에 나타나는 배경의 색
- style : 프레임 스타일
동일한 파라미터로 재 호출하면 사각형이 보이지 않게 된다.
MouseDown, MouseMove, MouseUp 이벤트를 사용하여 드래그 시 사각형을 생성할 수 있다.
'Programming > grammar' 카테고리의 다른 글
[C#] Func, Action (0) | 2021.11.04 |
---|---|
정규 표현식 (0) | 2021.08.11 |
리스트 컴프리헨션 (List Comprehension) (0) | 2021.08.11 |
[C#] List / Array / ArrayList (0) | 2020.07.20 |
[C#] WinForms GDI+ (0) | 2020.06.16 |
Comments