New to Telerik UI for WinForms? Start a free 30-day trial

IBrushFactory

Interface

Creates a drawing brush for a gauge visual and requested style.

Definition

Namespace:Telerik.WinControls.UI.Gauges

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface IBrushFactory

Methods

Creates a brush when the factory supports the specified visual and style.

C#
Brush CreateBrush(GaugeVisualElement owner, GaugeBrushType type)
Parameters:ownerGaugeVisualElement

The gauge visual whose colors and geometry may be used to configure the brush.

typeGaugeBrushType

The requested brush style.

Returns:

Brush

A brush for the visual, or null when this factory does not support the visual or style. The gauge renderer disposes brushes returned by this method after painting.