Skybound Rebar

RebarButtonRenderer.DrawBorders Method 

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

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

Parameters

graphics
The Graphics surface on which the borders are drawn.

Remarks

This method draws the borders of a rebar button. You can obtain the bounds in which the borders will be drawn by calling GetButtonRectangle and GetDropDownRectangle.

For separator buttons, this method draws a vertical etched line through the center of the button. For RebarButtonType.MenuOrPush buttons, both the borders for the push and drop-down button are drawn. For other types of buttons, a border is drawn around the bounds of the button.

When visual styles are enabled and BandType is RebarBandType.MenuBar, no borders are drawn.

See Also

RebarButtonRenderer Class | Skybound.Rebar.Rendering Namespace