SwitcherRenderer.RenderButton Method
Renders the buttons of the control.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Protected Overridable Sub RenderButton ( _
graphics As Graphics, _
bounds As Rectangle, _
text As String, _
hover As Boolean, _
selected As Boolean _
)
'Usage
Dim graphics As Graphics
Dim bounds As Rectangle
Dim text As String
Dim hover As Boolean
Dim selected As Boolean
Me.RenderButton(graphics, bounds, _
text, hover, selected)
protected virtual void RenderButton(
Graphics graphics,
Rectangle bounds,
string text,
bool hover,
bool selected
)
protected:
virtual void RenderButton(
Graphics^ graphics,
Rectangle bounds,
String^ text,
bool hover,
bool selected
)
abstract RenderButton :
graphics:Graphics *
bounds:Rectangle *
text:string *
hover:bool *
selected:bool -> unit
override RenderButton :
graphics:Graphics *
bounds:Rectangle *
text:string *
hover:bool *
selected:bool -> unit
protected function RenderButton(
graphics : Graphics,
bounds : Rectangle,
text : String,
hover : boolean,
selected : boolean
)
Parameters
- graphics
Type: System.Drawing.Graphics
Raises the Graphics event.
- bounds
Type: System.Drawing.Rectangle
The size of the rectangle.
- text
Type: System.String
A string that represents the render button.
- hover
Type: System.Boolean
true to the render button can be hovered; otherwise, false.
- selected
Type: System.Boolean
true to the render button is selected; otherwise, false.