TrackBarRenderer.GetBottomPointingThumbSize 方法

定義

傳回指向下方之追蹤列滑桿 (也稱為捲動方塊) 的大小 (以像素為單位)。

public:
 static System::Drawing::Size GetBottomPointingThumbSize(System::Drawing::Graphics ^ g, System::Windows::Forms::VisualStyles::TrackBarThumbState state);
public static System.Drawing.Size GetBottomPointingThumbSize (System.Drawing.Graphics g, System.Windows.Forms.VisualStyles.TrackBarThumbState state);
static member GetBottomPointingThumbSize : System.Drawing.Graphics * System.Windows.Forms.VisualStyles.TrackBarThumbState -> System.Drawing.Size
Public Shared Function GetBottomPointingThumbSize (g As Graphics, state As TrackBarThumbState) As Size

參數

g
Graphics

此作業將使用的 Graphics

state
TrackBarThumbState

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

傳回

Size

Size,指定滑桿的大小 (以像素為單位)。

例外狀況

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

-或-

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

-或-

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

備註

滑杆的大小取決於作業系統目前的視覺化樣式。

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

適用於