Skybound Rebar

RebarButtonRenderer.DrawBackground Method 

Draws the background of the button onto a specified Graphics object.

[Visual Basic]
Overridable Public Sub DrawBackground( _
   ByVal graphics As Graphics _
)
[C#]
public virtual void DrawBackground(
   Graphics graphics
);

Parameters

graphics
The Graphics surface on which the background is drawn.

Remarks

This method draws the background of the button within the button's bounds. When BandType is RebarBandType.MenuBar, and visual styles are enabled, this method fills the background of the button with the system highlight color. Otherwise, the background is filled with the Color in the BackColor property.

See Also

RebarButtonRenderer Class | Skybound.Rebar.Rendering Namespace