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

Creates the predefined brushes used to paint linear gauge bars.

Definition

Namespace:Telerik.WinControls.UI.Gauges

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class LinearGaugeBrushFactory : IBrushFactory

Inheritance: objectLinearGaugeBrushFactory

Implements: IBrushFactory

Constructors

C#
public LinearGaugeBrushFactory()

Methods

Creates a brush for a linear gauge bar and requested style.

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

The gauge visual to paint.

typeGaugeBrushType

The requested brush style.

Returns:

Brush

A solid or gradient brush for a LinearGaugeBar, or null when the visual or style is unsupported. The rainbow styles use the same palette. The built-in bar renderer does not guard against a null brush, so unsupported styles cannot be used with it.

Implements: IBrushFactory.CreateBrush(GaugeVisualElement, GaugeBrushType)