Defines the fluent API for configuring ChartPaneTitleSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartPaneTitleSettingsBuilder<T> where T : class
Inheritance: objectChartPaneTitleSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartPaneTitleSettingsBuilder<T> class.
public ChartPaneTitleSettingsBuilder(ChartPaneTitleSettings<T> container)
The ChartPaneTitleSettings<T> container
Properties
Gets the ChartPaneTitleSettings<T> container.
protected ChartPaneTitleSettings<T> Container { get; }
Methods
The background color of the title. Accepts a valid CSS color string, including hex and rgb.
public ChartPaneTitleSettingsBuilder<T> Background(string value)
The value for Background
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
The border of the title.
public ChartPaneTitleSettingsBuilder<T> Border(Action<ChartPaneTitleBorderSettingsBuilder<T>> configurator)
The ChartPaneTitleBorderSettingsBuilder<T> for the border setting.
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current instance of ChartPaneTitleSettingsBuilder<T> .
The text color of the title. Accepts a valid CSS color string, including hex and rgb.
public ChartPaneTitleSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
The font style of the title.
public ChartPaneTitleSettingsBuilder<T> Font(string value)
The value for Font
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
The margin of the title. A numeric value will set all margins.
public ChartPaneTitleSettingsBuilder<T> Margin(Action<ChartPaneTitleMarginSettingsBuilder<T>> configurator)
The ChartPaneTitleMarginSettingsBuilder<T> for the margin setting.
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current instance of ChartPaneTitleSettingsBuilder<T> .
The position of the title.The supported values are: "left" - the axis title is positioned on the left (applicable to horizontal axis); "right" - the axis title is positioned on the right (applicable to horizontal axis) or "center" - the axis title is positioned in the center.
public ChartPaneTitleSettingsBuilder<T> Position(string value)
The value for Position
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
The text of the title.
public ChartPaneTitleSettingsBuilder<T> Text(string value)
The value for Text
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
If set to true the chart will display the pane title. By default the pane title is visible.
public ChartPaneTitleSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
A function that can be used to create a custom visual for the title. The available argument fields are: text - the label text.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; options - the label options. or createVisual - a function that can be used to get the default visual..
public ChartPaneTitleSettingsBuilder<T> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.
A function that can be used to create a custom visual for the title. The available argument fields are: text - the label text.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; options - the label options. or createVisual - a function that can be used to get the default visual..
public ChartPaneTitleSettingsBuilder<T> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ChartPaneTitleSettingsBuilder<T>
Returns the current ChartPaneTitleSettingsBuilder<T> instance.