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

Kendo UI DiagramShape TagHelper DiagramShapeTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("shape", ParentTag = "shapes", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("connectors", new string[] { "connector-defaults", "content", "editable", "fill", "hover", "rotation", "stroke", "center", "accessibility" })]
[SuppressTagRendering]
public class DiagramShapeTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDiagramShapeTagHelper

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">
    <shapes>
        <shape>
            <accessibility></accessibility>
        </shape>
    </shapes>
</kendo-diagram>

Constructors

Initializes a new instance of the DiagramShapeTagHelper class.

C#
public DiagramShapeTagHelper()

Properties

Defines the corner radius of the shape.

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

DataItem member.

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

Specifies the type of the Diagram Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text.

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

Defines the background fill options of the shape.

C#
[HtmlAttributeName("fill")]
public string FillValue { get; set; }

Specifies the type of the Workflow Shape type using any of the built-in shape types. Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention.

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

Defines the height of the shape when added to the Diagram.

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

The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. The connection to and from properties usually point to shape id values.

C#
public string Id { get; set; }

Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.

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

Defines the minimum width the shape should have, that is, it cannot be resized to a value smaller than the given one. See example at shapes.minHeight.

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

The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (https://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").

C#
public string Path { get; set; }

The radius of circular shapes.

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

Specifies if the shape can be selected.

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

The source of the shape image. Applicable when the type is set to "image".

C#
public string Source { get; set; }

Specifies the type of the Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text. Or common workflow shapes as: Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention..

C#
public string Type { get; set; }

A function returning a visual element to render for this shape.The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.

C#
public string Visual { get; set; }

Defines the width of the shape when added to the Diagram.

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

Defines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.

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

Defines the y-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout. You can see an example at shapes.x

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