Defines the fluent API for configuring the DiagramShapeDefaultsContentSettings settings.
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
public DiagramShapeDefaultsContentSettingsBuilder(DiagramShapeDefaultsContentSettings settings)
Methods
Defines the default alignment of the text inside the shapes. You can set 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 more.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
The value that configures the align.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default color of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
The value that configures the color.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default font family of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
The value that configures the font family.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default font size of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
The value that configures the fontsize.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default font style of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
The value that configures the font style.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default font weight of the shape content text.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
The value that configures the font weight.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
The spacing between lines of text in the shape.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> LineSpacing(double value)
The value that configures the line spacing.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
The padding of the shape content.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramShapeDefaultsContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the padding.
Returns: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 action that configures the relativepadding.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default template that renders the labels.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
The value that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default template that renders the labels.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default template that renders the labels.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
The value that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default template that renders the labels.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
The value that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the default template that renders the labels.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
The text that is displayed in the shape.
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
The value that configures the text.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> TextWrap(ShapeTextWrap value)
The value that configures the text wrap.
Returns:DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>