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

Kendo UI DiagramShapeDefaultsContentSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public DiagramShapeDefaultsContentSettings()

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; }

Diagram

Diagram<TShapeModel, TConnectionModel>

Diagram member.

C#
public Diagram<TShapeModel, TConnectionModel> Diagram { 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 padding of the shape content.

C#
public DiagramShapeDefaultsContentPaddingSettings<TShapeModel, TConnectionModel> Padding { get; }

The relative padding of the shape content e.g. 0.03 means 3% of the shape width/height.

C#
public DiagramShapeDefaultsContentRelativePaddingSettings<TShapeModel, TConnectionModel> RelativePadding { get; }

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 handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { 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

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>