New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring ChartPaneTitleSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartPaneTitleSettingsBuilder<T> where T : class

Inheritance: objectChartPaneTitleSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartPaneTitleSettingsBuilder<T> class.

C#
public ChartPaneTitleSettingsBuilder(ChartPaneTitleSettings<T> container)
Parameters:containerChartPaneTitleSettings<T>

The ChartPaneTitleSettings<T> container

Properties

Gets the ChartPaneTitleSettings<T> container.

C#
protected ChartPaneTitleSettings<T> Container { get; }

Methods

The background color of the title. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartPaneTitleSettingsBuilder<T> Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartPaneTitleSettingsBuilder<T>

Returns the current ChartPaneTitleSettingsBuilder<T> instance.

The border of the title.

C#
public ChartPaneTitleSettingsBuilder<T> Border(Action<ChartPaneTitleBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPaneTitleBorderSettingsBuilder<T>>

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.

C#
public ChartPaneTitleSettingsBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartPaneTitleSettingsBuilder<T>

Returns the current ChartPaneTitleSettingsBuilder<T> instance.

The font style of the title.

C#
public ChartPaneTitleSettingsBuilder<T> Font(string value)
Parameters:valuestring

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.

C#
public ChartPaneTitleSettingsBuilder<T> Margin(Action<ChartPaneTitleMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPaneTitleMarginSettingsBuilder<T>>

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.

C#
public ChartPaneTitleSettingsBuilder<T> Position(string value)
Parameters:valuestring

The value for Position

Returns:

ChartPaneTitleSettingsBuilder<T>

Returns the current ChartPaneTitleSettingsBuilder<T> instance.

The text of the title.

C#
public ChartPaneTitleSettingsBuilder<T> Text(string value)
Parameters:valuestring

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.

C#
public ChartPaneTitleSettingsBuilder<T> Visible(bool value)
Parameters:valuebool

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..

C#
public ChartPaneTitleSettingsBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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..

C#
public ChartPaneTitleSettingsBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartPaneTitleSettingsBuilder<T>

Returns the current ChartPaneTitleSettingsBuilder<T> instance.