Skybound Rebar

RebarTheme.CreateButtonRenderer Method 

Creates a new RebarButtonRenderer object which renders buttons using the current theme.

[Visual Basic]
Overridable Public Function CreateButtonRenderer() As RebarButtonRenderer
[C#]
public virtual RebarButtonRenderer CreateButtonRenderer();

Return Value

A RebarButtonRenderer object which renders bands using the current theme.

Remarks

The Create methods of a RebarTheme implement a factory design pattern. When you want to draw using a theme, first create a renderer by calling a Create method, and then call the methods on the new renderer to perform the required drawing.

If you create a custom theme, override this method and return a new instance of your custom implementation of RebarButtonRenderer.

See Also

RebarTheme Class | Skybound.Rebar.Rendering Namespace