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

Kendo UI minorGridLines TagHelper ChartXAxisMinorGridLinesSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("minor-grid-lines", ParentTag = "x-axis-item", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ChartXAxisMinorGridLinesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartXAxisMinorGridLinesSettingsTagHelper

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">
    <x-axis>
        <x-axis-item>
            <minor-grid-lines color="#ff0000" />
        </x-axis-item>
    </x-axis>
</kendo-chart>

Constructors

Initializes a new instance of the ChartXAxisMinorGridLinesSettingsTagHelper class.

C#
public ChartXAxisMinorGridLinesSettingsTagHelper()

Properties

The color of the minor grid lines. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The dash type of the minor grid lines.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

C#
public DashType? DashType { get; set; }

The skip of the x axis minor grid lines.

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

The step of the x axis minor grid lines.

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

If set to true the chart will display the minor grid lines. By default the minor grid lines are visible.

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

The width of the category axis minor grid lines in pixels.

C#
public double? Width { 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>