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!

ButtonBase.DrawFace

Draws a button control face, including the text, image or both.

[Visual Basic]
Protected Sub DrawFace( _
   ByVal g As Graphics, _
   ByVal r As Rectangle _
)
[C#]
protected void DrawFace(
   Graphics g,
   Rectangle r
);
[C++]
protected: void DrawFace(
   Graphics* g,
   Rectangle r
);
[JScript]
protected function DrawFace(
   g : Graphics,
   r : Rectangle
);

Parameters

g
The Graphics surface to draw on.
r
The Rectangle bounds to draw within.

Remarks

If the button has an image assigned to it, the image is drawn on the face of the control. If the Enabled property is set to false, the button's face will be drawn greyed out.

See Also

ButtonBase Class | ButtonBase Members | System.WinForms Namespace | DrawImage | DrawBackground