ControlPaint.DrawScrollButton 方法

定义

在滚动条控件上绘制滚动按钮。

重载

DrawScrollButton(Graphics, Rectangle, ScrollButton, ButtonState)

在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。

DrawScrollButton(Graphics, Int32, Int32, Int32, Int32, ScrollButton, ButtonState)

在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。

DrawScrollButton(Graphics, Rectangle, ScrollButton, ButtonState)

在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。

public:
 static void DrawScrollButton(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::ScrollButton button, System::Windows::Forms::ButtonState state);
public static void DrawScrollButton (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.ScrollButton button, System.Windows.Forms.ButtonState state);
static member DrawScrollButton : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ScrollButton * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawScrollButton (graphics As Graphics, rectangle As Rectangle, button As ScrollButton, state As ButtonState)

参数

graphics
Graphics

要进行绘制的 Graphics

rectangle
Rectangle

代表标志符号尺寸的 Rectangle

button
ScrollButton

ScrollButton 值的其中之一,指定要绘制的滚动箭头的类型。

state
ButtonState

ButtonState 值的按位组合,指定要将滚动按钮画入的状态。

另请参阅

适用于

DrawScrollButton(Graphics, Int32, Int32, Int32, Int32, ScrollButton, ButtonState)

在滚动条控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的指定滚动按钮。

public:
 static void DrawScrollButton(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::ScrollButton button, System::Windows::Forms::ButtonState state);
public static void DrawScrollButton (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.ScrollButton button, System.Windows.Forms.ButtonState state);
static member DrawScrollButton : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.ScrollButton * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawScrollButton (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, button As ScrollButton, state As ButtonState)

参数

graphics
Graphics

要进行绘制的 Graphics

x
Int32

所绘制矩形左上角的 x 坐标。

y
Int32

所绘制矩形左上角的 y 坐标。

width
Int32

滚动按钮的宽度。

height
Int32

滚动按钮的高度。

button
ScrollButton

ScrollButton 值的其中之一,指定要绘制的滚动箭头的类型。

state
ButtonState

ButtonState 值的按位组合,指定要将滚动按钮画入的状态。

另请参阅

适用于