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

Defines the fluent API for configuring ChartAxisDefaultsTitleSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartAxisDefaultsTitleSettingsBuilder<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 ChartAxisDefaultsTitleSettingsBuilder<T> class.

C#
public ChartAxisDefaultsTitleSettingsBuilder(ChartAxisDefaultsTitleSettings<T> container)
Parameters:containerChartAxisDefaultsTitleSettings<T>

The ChartAxisDefaultsTitleSettings<T> container

Properties

Gets the ChartAxisDefaultsTitleSettings<T> container.

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

Methods

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

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

The value for Background

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

The border of the title.

C#
public ChartAxisDefaultsTitleSettingsBuilder<T> Border(Action<ChartAxisDefaultsTitleBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsTitleBorderSettingsBuilder<T>>

The ChartAxisDefaultsTitleBorderSettingsBuilder<T> for the border setting.

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsTitleSettingsBuilder<T> .

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

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

The value for Color

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

The font style of the title.

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

The value for Font

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

The margin of the title. A numeric value will set all margins.

C#
public ChartAxisDefaultsTitleSettingsBuilder<T> Margin(Action<ChartAxisDefaultsTitleMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsTitleMarginSettingsBuilder<T>>

The ChartAxisDefaultsTitleMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsTitleSettingsBuilder<T> .

The padding of the title. A numeric value will set all paddings.

C#
public ChartAxisDefaultsTitleSettingsBuilder<T> Padding(Action<ChartAxisDefaultsTitlePaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsTitlePaddingSettingsBuilder<T>>

The ChartAxisDefaultsTitlePaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsTitleSettingsBuilder<T> .

The position of the title.The supported values are: "top" - the axis title is positioned on the top (applicable to vertical axis); "bottom" - the axis title is positioned on the bottom (applicable to vertical axis); "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 ChartAxisDefaultsTitleSettingsBuilder<T> Position(string value)
Parameters:valuestring

The value for Position

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

The rotation angle of the title. By default the title is not rotated.

C#
public ChartAxisDefaultsTitleSettingsBuilder<T> Rotation(double value)
Parameters:valuedouble

The value for Rotation

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

The text of the title.

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

The value for Text

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.

If set to true the chart will display the axis title. By default the axis title is visible.

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

The value for Visible

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<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 ChartAxisDefaultsTitleSettingsBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<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 ChartAxisDefaultsTitleSettingsBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartAxisDefaultsTitleSettingsBuilder<T>

Returns the current ChartAxisDefaultsTitleSettingsBuilder<T> instance.