Defines the fluent API for configuring ChartTitleSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartTitleSettingsBuilder<T> where T : class
Inheritance: objectChartTitleSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartTitleSettingsBuilder<T> class.
public ChartTitleSettingsBuilder(ChartTitleSettings<T> container)
The ChartTitleSettings<T> container
Properties
Gets the ChartTitleSettings<T> container.
protected ChartTitleSettings<T> Container { get; }
Methods
Specifies the text alignment.
public ChartTitleSettingsBuilder<T> Align(ChartTextAlignment value)
The value for Align
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The background color of the title. Accepts a valid CSS color string, including hex and rgb.
public ChartTitleSettingsBuilder<T> Background(string value)
The value for Background
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The border of the title.
public ChartTitleSettingsBuilder<T> Border(Action<ChartTitleBorderSettingsBuilder<T>> configurator)
The ChartTitleBorderSettingsBuilder<T> for the border setting.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Sets the title border
public ChartTitleSettingsBuilder<T> Border(int width, string color, ChartDashType dashType)
The title border width.
colorstringThe title border color.
dashTypeChartDashTypeThe title dash type.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
The text color of the title. Accepts a valid CSS color string, including hex and rgb.
public ChartTitleSettingsBuilder<T> Color(string value)
The value for Color
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The accessible description of the Chart. The description is announced by screen readers when the Chart is focused.
public ChartTitleSettingsBuilder<T> Description(string value)
The value for Description
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The font of the title.
public ChartTitleSettingsBuilder<T> Font(string value)
The value for Font
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The margin of the title. A numeric value will set all margins.
public ChartTitleSettingsBuilder<T> Margin(Action<ChartTitleMarginSettingsBuilder<T>> configurator)
The ChartTitleMarginSettingsBuilder<T> for the margin setting.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Sets the title margin
public ChartTitleSettingsBuilder<T> Margin(int top, int right, int bottom, int left)
The title top margin.
rightintThe title right margin.
bottomintThe title bottom margin.
leftintThe title left margin.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Sets the title margin
public ChartTitleSettingsBuilder<T> Margin(int margin)
The title margin.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
The padding of the title. A numeric value will set all margins.
public ChartTitleSettingsBuilder<T> Padding(Action<ChartTitlePaddingSettingsBuilder<T>> configurator)
The ChartTitlePaddingSettingsBuilder<T> for the padding setting.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Sets the title padding
public ChartTitleSettingsBuilder<T> Padding(int top, int right, int bottom, int left)
The title top padding.
rightintThe title right padding.
bottomintThe title bottom padding.
leftintThe title left padding.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Sets the title padding
public ChartTitleSettingsBuilder<T> Padding(int padding)
The title padding.
Returns:Returns the current instance of ChartTitleSettingsBuilder<T> .
Specifies the title position.
public ChartTitleSettingsBuilder<T> Position(ChartTitlePosition value)
The value for Position
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
The text of the chart title. You can also set the text directly for a title with default options.
public ChartTitleSettingsBuilder<T> Text(string value)
The value for Text
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.
If set to true the chart will display the title. By default the title will be displayed.
public ChartTitleSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:Returns the current ChartTitleSettingsBuilder<T> instance.