Kendo UI shapeDefaults TagHelper DiagramShapeDefaultsSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("shape-defaults", ParentTag = "kendo-diagram", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("connectors", new string[] { "connector-defaults", "content", "editable", "fill", "hover", "rotation", "stroke", "center", "accessibility" })]
[SuppressTagRendering]
public class DiagramShapeDefaultsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeDefaultsSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<shape-defaults>
<accessibility></accessibility>
</shape-defaults>
</kendo-diagram>
Child Tags
Constructors
Initializes a new instance of the DiagramShapeDefaultsSettingsTagHelper class.
public DiagramShapeDefaultsSettingsTagHelper()
Properties
Defines the corner radius of the shape.
public double? CornerRadius { 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.
public DiagramShapeType? DiagramShapeType { get; set; }
Defines the fill options of the shape. Use these settings to apply a single-color or a gradient background to all shapes in the Diagram.
[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.
public FlowchartShapeType? FlowchartShapeType { get; set; }
Defines the default height of shapes in the Diagram.
public double? Height { get; set; }
Defines the minimum height the shape can have. Use this setting to apply a lower limit to the height of shapes when users resize them.
public double? MinHeight { get; set; }
Defines the minimum width the shape can have. Use this setting to apply a lower limit to the width of shapes when users resize them.
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.").
public string Path { get; set; }
Defines the radius of the shape. Applicable for the circle shape.
public double? Radius { get; set; }
Specifies if Diagram shapes can be selected.
public bool? Selectable { get; set; }
The path/URL to the shape image. Applicable when the type is set to "image".
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..
public string Type { get; set; }
A function that returns a visual element to render for a given shape. The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.
public string Visual { get; set; }
Defines the default width of shapes in the Diagram.
public double? Width { 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.