通过


ScrollBarRenderer.DrawSizeBox 方法

定义

使用视觉样式绘制滚动条大小调整手柄。

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

适用于