Defines the fluent interface for configuring the gauge labels.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TBuilder
Syntax:
public abstract class GaugeLabelsBuilder<TBuilder> where TBuilder : GaugeLabelsBuilder<TBuilder>
Inheritance: objectGaugeLabelsBuilder<TBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the GaugeLabelsBuilder<TBuilder> class.
public GaugeLabelsBuilder(GaugeScaleLabelsBase scaleLabels)
The labels configuration.
Methods
Sets the labels background color
public TBuilder Background(string background)
The labels background color.
Returns:TBuilder
Configures the label border
public TBuilder Border(Action<ChartBorderBuilder> configurator)
The border configuration action
Returns:TBuilder
Sets the labels border
public TBuilder Border(int width, string color, ChartDashType dashType)
The labels border width.
colorstringThe labels border color (CSS syntax).
dashTypeChartDashTypeThe labels border dash type.
Returns:TBuilder
Sets the labels text color
public TBuilder Color(string color)
The labels text color.
Returns:TBuilder
Sets the labels font
public TBuilder Font(string font)
The labels font (CSS format).
Returns:TBuilder
Sets the labels format.
Sets the labels margin
Sets the labels opacity.
public TBuilder Opacity(double opacity)
The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.
Returns:TBuilder
Sets the labels padding
Sets the labels template.
public TBuilder Template(string template)
The labels template.
Returns:TBuilder
Sets the labels template.
public TBuilder Template(TemplateBuilder<dynamic> template)
The labels template.
Returns:TBuilder
Sets the labels template.
public TBuilder TemplateHandler(string handler)
The labels template.
Returns:TBuilder
Sets the labels template.
public TBuilder TemplateView(HtmlString templateView)
TBuilder
Sets the labels visibility
public TBuilder Visible(bool visible)
The labels visibility.
Returns:TBuilder