Defines the fluent API for configuring DiagramShapeDefaultsContentSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
DiagramShapeDefaultsContentSettingsBuilder method.
public DiagramShapeDefaultsContentSettingsBuilder(DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> Container { get; }
Methods
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
The value for Align
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The color of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
The value for Color
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font family of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
The value for FontFamily
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font size of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
The value for FontSize
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font style of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
The value for FontStyle
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font weight of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
The value for FontWeight
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The spacing between lines of text in the shape.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> LineSpacing(double value)
The value for LineSpacing
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The padding of the shape content.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramShapeDefaultsContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsContentPaddingSettingsBuilder<TShapeModel, TConnectionModel> for the padding setting.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> .
The relative padding of the shape content e.g. 0.03 means 3% of the shape width/height.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> RelativePadding(Action<DiagramShapeDefaultsContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel> for the relativepadding setting.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> .
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
The value for Template
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string templateId)
The ID of the template element for Template
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The text that is displayed in the shape.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
The value for Text
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TextWrap(ShapeTextWrap value)
The value for TextWrap
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.