Kendo UI stroke TagHelper DiagramShapeStrokeSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("stroke", ParentTag = "shape", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class DiagramShapeStrokeSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeStrokeSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<shapes>
<shape>
<stroke color="#ff0000" />
</shape>
</shapes>
</kendo-diagram>
Constructors
Initializes a new instance of the DiagramShapeStrokeSettingsTagHelper class.
public DiagramShapeStrokeSettingsTagHelper()
Properties
The dash type of the shape.The following dash types are supported: "dash" - A line that consists of dashes; "dashDot" - A line that consists of a repeating pattern of dash-dot; "dot" - A line that consists of dots; "longDash" - A line that consists of a repeating pattern of long-dash; "longDashDot" - A line that consists of a repeating pattern of long-dash-dot; "longDashDotDot" - A line that consists of a repeating pattern of long-dash-dot-dot or "solid" - A solid line.
public DiagramDashType? DashType { get; set; }
Defines the line cap style of the stroke. Supported values are "butt", "round", and "square".
public DiagramStrokeLineCap? LineCap { get; set; }
Defines the line join style of the stroke. Supported values are "bevel", "miter", and "round".
public DiagramStrokeLineJoin? LineJoin { 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.