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

Kendo UI DiagramConnection TagHelper DiagramConnectionTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("connection", ParentTag = "connections", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content", new string[] { "editable", "end-cap", "from", "hover", "points", "selection", "start-cap", "stroke", "to", "accessibility" })]
[SuppressTagRendering]
public class DiagramConnectionTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDiagramConnectionTagHelper

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-diagram name="diagram">
    <connections>
        <connection>
            <accessibility></accessibility>
        </connection>
    </connections>
</kendo-diagram>

Constructors

Initializes a new instance of the DiagramConnectionTagHelper class.

C#
public DiagramConnectionTagHelper()

Properties

Defines the corner radius of the connection.

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

DataItem member.

C#
[HtmlAttributeName("dataitem")]
public object DataItem { get; set; }

The connection end cap configuration or type name.

C#
[HtmlAttributeName("end-cap")]
public string EndCapValue { get; set; }

Specifies the name of the source shape connector that should be used by the connection.

C#
public string FromConnector { get; set; }

Defines the source of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.

C#
[HtmlAttributeName("from")]
public string FromValue { get; set; }

Specifies if the connection can be selected.

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

The start cap (arrow, head or decoration) of the connection.

C#
[HtmlAttributeName("start-cap")]
public string StartCapValue { get; set; }

Specifies the name of the target shape connector that should be used by the connection.

C#
public string ToConnector { get; set; }

Defines the target of the connection. You can set this property to a value matching a shape id or to an object with XY-coordinates.

C#
[HtmlAttributeName("to")]
public string ToValue { get; set; }

The connection type.

C#
public DiagramConnectionType? Type { 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>