Share via


TrackBarRenderer.DrawHorizontalThumb 方法

定義

繪製具有視覺化樣式的水平追蹤列滑桿 (也稱為捲動方塊)。

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

參數

g
Graphics

繪製追蹤列滑桿所用的 Graphics

bounds
Rectangle

指定追蹤列滑桿繫結的 Rectangle

state
TrackBarThumbState

其中一個 TrackBarThumbState 值,指定追蹤列滑桿的可見狀態。

例外狀況

作業系統不支援視覺化樣式。

-或-

使用者已停用作業系統中的視覺化樣式。

-或-

視覺化樣式不適用於應用程式視窗的工作區。

備註

呼叫這個方法之前,您應該先確認 屬性的值 IsSupportedtrue

適用於