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.Draw3DBorder

Draws the three-dimensional border for a button control.

[Visual Basic]
Overridable Protected Sub Draw3DBorder( _
   ByVal g As Graphics, _
   ByVal r As Rectangle, _
   ByVal width As Integer, _
   ByVal raised As Boolean _
)
[C#]
protected virtual void Draw3DBorder(
   Graphics g,
   Rectangle r,
   int width,
   bool raised
);
[C++]
protected: virtual void Draw3DBorder(
   Graphics* g,
   Rectangle r,
   int width,
   bool raised
);
[JScript]
protected function Draw3DBorder(
   g : Graphics,
   r : Rectangle,
   width : int,
   raised : Boolean
);

Parameters

g
The Graphics surface to draw on.
r
The Rectangle bounds to draw within.
width
The width of the border in pixels.
raised
true if the border is raised; otherwise false.

Remarks

Notes to Inheritors: When overriding Draw3DBorder in a derived class, be sure to call the base class's Draw3DBorder method.

See Also

ButtonBase Class | ButtonBase Members | System.WinForms Namespace | DrawFlatFrame | DrawDefaultBorder