Kendo UI stroke TagHelper MapStyleStrokeSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("stroke", ParentTag = "map-style", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class MapStyleStrokeSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseMapStyleStrokeSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-map name="map">
<layer-defaults>
<shape>
<map-style>
<stroke color="#ff0000" />
</map-style>
</shape>
</layer-defaults>
</kendo-map>
Constructors
Initializes a new instance of the MapStyleStrokeSettingsTagHelper class.
public MapStyleStrokeSettingsTagHelper()
Properties
The default stroke color for layer shapes. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
The default dash type for layer shapes. 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.
public DashType? DashType { get; set; }
The default stroke opacity (0 to 1) for layer shapes.
public double? Opacity { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.