Kendo UI DiagramShapeDefaultsContentSettings class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>
Inherited Members
Constructors
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.
public string Align { get; set; }
Diagram member.
public Diagram<TShapeModel, TConnectionModel> Diagram { 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 spacing between lines of text in the shape.
public double? LineSpacing { get; set; }
Padding
DiagramShapeDefaultsContentPaddingSettings<TShapeModel, TConnectionModel>
The padding of the shape content.
public DiagramShapeDefaultsContentPaddingSettings<TShapeModel, TConnectionModel> Padding { get; }
RelativePadding
DiagramShapeDefaultsContentRelativePaddingSettings<TShapeModel, TConnectionModel>
The relative padding of the shape content e.g. 0.03 means 3% of the shape width/height.
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.
public string Template { get; set; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public ShapeTextWrap? TextWrap { get; set; }
Methods
Serialize current instance to Dictionary
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()