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

Defines the fluent API for configuring ChartLegendTitleSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartLegendTitleSettingsBuilder<T>

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

Constructors

ChartLegendTitleSettingsBuilder method.

C#
public ChartLegendTitleSettingsBuilder(ChartLegendTitleSettings<T> container)
Parameters:containerChartLegendTitleSettings<T>

Properties

Gets or sets the Container.

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

Methods

The alignment of the title. "center" - the text is aligned to the middle.; "left" - the text is aligned to the left. or "right" - the text is aligned to the right..

C#
public ChartLegendTitleSettingsBuilder<T> Align(string value)
Parameters:valuestring

The value for Align

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

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

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

The value for Background

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

The border of the title.

C#
public ChartLegendTitleSettingsBuilder<T> Border(Action<ChartLegendTitleBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendTitleBorderSettingsBuilder<T>>

The ChartLegendTitleBorderSettingsBuilder<T> for the border setting.

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current instance of ChartLegendTitleSettingsBuilder<T> .

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

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

The value for Color

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

The font of the title.

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

The value for Font

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

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

C#
public ChartLegendTitleSettingsBuilder<T> Margin(Action<ChartLegendTitleMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendTitleMarginSettingsBuilder<T>>

The ChartLegendTitleMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current instance of ChartLegendTitleSettingsBuilder<T> .

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

C#
public ChartLegendTitleSettingsBuilder<T> Padding(Action<ChartLegendTitlePaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartLegendTitlePaddingSettingsBuilder<T>>

The ChartLegendTitlePaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current instance of ChartLegendTitleSettingsBuilder<T> .

The position of the title. "bottom" - the title is positioned on the bottom. or "top" - the title is positioned on the top..

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

The value for Position

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

The text of the legend title. You can also set the text directly for a title with default options.

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

The value for Text

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.

If set to true the chart will display the title. By default the title will be displayed.

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

The value for Visible

Returns:

ChartLegendTitleSettingsBuilder<T>

Returns the current ChartLegendTitleSettingsBuilder<T> instance.