다음을 통해 공유


ScrollBarRenderer.DrawSizeBox 메서드

정의

비주얼 스타일을 사용하여 스크롤 막대 크기 조정 핸들을 그립니다.

public:
 static void DrawSizeBox(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::VisualStyles::ScrollBarSizeBoxState state);
public static void DrawSizeBox(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.ScrollBarSizeBoxState state);
static member DrawSizeBox : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.VisualStyles.ScrollBarSizeBoxState -> unit
Public Shared Sub DrawSizeBox (g As Graphics, bounds As Rectangle, state As ScrollBarSizeBoxState)

매개 변수

g
Graphics

Graphics 크기 조정 핸들을 그리는 데 사용됩니다.

bounds
Rectangle

Rectangle 크기 조정 핸들의 범위를 지정하는 개체입니다.

state
ScrollBarSizeBoxState

크기 조정 핸들의 ScrollBarSizeBoxState 시각적 상태를 지정하는 값 중 하나입니다.

예외

운영 체제는 비주얼 스타일을 지원하지 않습니다.

-또는-

운영 체제의 사용자가 비주얼 스타일을 사용하지 않도록 설정합니다.

-또는-

시각적 스타일은 애플리케이션 창의 클라이언트 영역에 적용되지 않습니다.

설명

이 메서드를 사용하기 전에 속성이 IsSupported 반환 true되는지 확인해야 합니다.

적용 대상