Share via


ScrollBarRenderer.DrawSizeBox 方法

定義

繪製具有視覺化樣式的捲軸縮放控點 (Sizing Handle)。

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 回 。

適用於