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

Kendo UI content TagHelper DiagramShapeDefaultsContentSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("content", ParentTag = "shape-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content-template", new string[] { "padding", "relative-padding" })]
[SuppressTagRendering]
public class DiagramShapeDefaultsContentSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeDefaultsContentSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

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">
    <shape-defaults>
        <content align="top right"></content>
    </shape-defaults>
</kendo-diagram>

Constructors

Initializes a new instance of the DiagramShapeDefaultsContentSettingsTagHelper class.

C#
public DiagramShapeDefaultsContentSettingsTagHelper()

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.

C#
public string Align { get; set; }

The color of the shape content text.

C#
public string Color { get; set; }

The font family of the shape content text.

C#
public string FontFamily { get; set; }

The font size of the shape content text.

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

The font style of the shape content text.

C#
public string FontStyle { get; set; }

The font weight of the shape content text.

C#
public string FontWeight { get; set; }

The spacing between lines of text in the shape.

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

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

C#
public string Template { get; set; }

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

The text that is displayed in the shape.

C#
public string Text { get; set; }

Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".

C#
public ShapeTextWrap? TextWrap { 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>