TrackBarRenderer.DrawHorizontalTicks 메서드

정의

비주얼 스타일을 사용하여 지정된 수의 가로 트랙 표시줄 눈금을 그립니다.

public:
 static void DrawHorizontalTicks(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, int numTicks, System::Windows::Forms::VisualStyles::EdgeStyle edgeStyle);
public static void DrawHorizontalTicks (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, int numTicks, System.Windows.Forms.VisualStyles.EdgeStyle edgeStyle);
static member DrawHorizontalTicks : System.Drawing.Graphics * System.Drawing.Rectangle * int * System.Windows.Forms.VisualStyles.EdgeStyle -> unit
Public Shared Sub DrawHorizontalTicks (g As Graphics, bounds As Rectangle, numTicks As Integer, edgeStyle As EdgeStyle)

매개 변수

g
Graphics

눈금을 그리는 데 사용되는 Graphics입니다.

bounds
Rectangle

눈금의 범위를 지정하는 Rectangle입니다.

numTicks
Int32

그릴 눈금 수입니다.

edgeStyle
EdgeStyle

EdgeStyle 값 중 하나입니다.

예외

운영 체제에서 비주얼 스타일을 지원하지 않는 경우

또는

운영 체제에서 사용자가 비주얼 스타일을 사용하지 않도록 설정한 경우

또는

비주얼 스타일이 애플리케이션 창의 클라이언트 영역에 적용되지 않은 경우

설명

이 메서드를 호출 하기 전에 확인 해야 하는 값을 IsSupported 속성은 true합니다.

틱의 개수나 경계 사각형의 너비 또는 높이 0 보다 작거나 같은 경우 또는 g 됩니다 null, DrawHorizontalTicks 렌더링 하지 않고 반환 합니다.

적용 대상