ScrollBarRenderer.DrawSizeBox Metod

Definition

Ritar ett rullningsliststorlekshandtag med visuella format.

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)

Parametrar

g
Graphics

Används Graphics för att rita storlekshandtaget.

bounds
Rectangle

Som Rectangle anger gränserna för storlekshandtaget.

state
ScrollBarSizeBoxState

Ett av de ScrollBarSizeBoxState värden som anger det visuella tillståndet för storlekshandtaget.

Undantag

Operativsystemet stöder inte visuella format.

-eller-

Visuella format är inaktiverade av användaren i operativsystemet.

-eller-

Visuella format tillämpas inte på klientområdet i programfönster.

Kommentarer

Innan du använder den här metoden bör du kontrollera att egenskapen IsSupported returnerar true.

Gäller för