NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

Draws a button for a Win32 scroll bar in the given rectangle with the given state.

[Visual Basic]
Overloads Public Shared Sub DrawScrollButton( _
   ByVal graphics As Graphics, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal button As ScrollButton, _
   ByVal state As ButtonState _
)
[C#]
public static void DrawScrollButton(
   Graphics graphics,
   int x,
   int y,
   int width,
   int height,
   ScrollButton button,
   ButtonState state
);
[C++]
public: static void DrawScrollButton(
   Graphics* graphics,
   int x,
   int y,
   int width,
   int height,
   ScrollButton button,
   ButtonState state
);
[JScript]
public static function DrawScrollButton(
   graphics : Graphics,
   x : int,
   y : int,
   width : int,
   height : int,
   button : ScrollButton,
   state : ButtonState
);

Parameters

graphics
The graphics object to draw to.
x
X coordinate of the upper left corner of the drawing rectangle.
y
Y coordinate of the upper left corner of the drawing rectangle.
width
Width of the button.
height
Height of the button.
button
A ScrollButton value to determine the scroll bar button to draw.
state
One or more ButtonState flags that determine how to draw the button.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace | ControlPaint.DrawScrollButton Overload List | ScrollButton | ButtonState