Kendo UI content TagHelper DiagramShapeContentSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("content", ParentTag = "shape", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("padding", new string[] { "relative-padding" })]
[SuppressTagRendering]
public class DiagramShapeContentSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeContentSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<shapes>
<shape>
<content align="top right" />
</shape>
</shapes>
</kendo-diagram>
Child Tags
Constructors
Initializes a new instance of the DiagramShapeContentSettingsTagHelper class.
public DiagramShapeContentSettingsTagHelper()
Properties
The alignment of the text inside the shape. You can do combinations between "top", "middle" and "bottom" for vertical align and "right", "center" and "left" for horizontal align. For example, "top right", "middle left", "bottom center", and so on.
public string Align { get; set; }
The font family of the shape content text.
public string FontFamily { get; set; }
The font weight of the shape content text.
public string FontWeight { get; set; }
The line spacing of the content text.
public double? LineSpacing { get; set; }
The template which renders the labels. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders the labels. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the DiagramShapeContentSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the labels. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public ShapeTextWrap? TextWrap { 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.
Serializes the defined templates.