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

Kendo UI title TagHelper ChartAxisDefaultsTitleSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("chart-axis-defaults-title", ParentTag = "axis-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "margin", "padding" })]
[SuppressTagRendering]
public class ChartAxisDefaultsTitleSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartAxisDefaultsTitleSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-chart name="chart">
    <axis-defaults>
        <chart-axis-defaults-title background="#f5f5f5" />
    </axis-defaults>
</kendo-chart>

Constructors

Initializes a new instance of the ChartAxisDefaultsTitleSettingsTagHelper class.

C#
public ChartAxisDefaultsTitleSettingsTagHelper()

Properties

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

C#
public string Background { get; set; }

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

C#
public string Color { get; set; }

The font style of the title.

C#
public string Font { get; set; }

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 string Position { get; set; }

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

C#
public double? Rotation { get; set; }

The text of the title.

C#
public string Text { get; set; }

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

C#
public bool? Visible { get; set; }

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 string Visual { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>