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

Kendo UI crosshair TagHelper ChartValueAxisCrosshairSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("crosshair", ParentTag = "value-axis-item", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("chart-value-axis-crosshair-tooltip", new string[] { })]
[SuppressTagRendering]
public class ChartValueAxisCrosshairSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartValueAxisCrosshairSettingsTagHelper

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">
    <value-axis>
        <value-axis-item>
            <crosshair color="#FF0000"></crosshair>
        </value-axis-item>
    </value-axis>
</kendo-chart>

Constructors

Initializes a new instance of the ChartValueAxisCrosshairSettingsTagHelper class.

C#
public ChartValueAxisCrosshairSettingsTagHelper()

Properties

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

C#
public string Color { get; set; }

The dash type of the crosshair.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 opacity of the crosshair. By default the crosshair is opaque.

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

If set to true the chart will display the value axis crosshair. By default the value axis crosshair is not visible.

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

The width of the crosshair 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>