Defines the fluent API for configuring the DiagramShapeContentSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramShapeContentSettingsBuilder(DiagramShapeContentSettings settings)
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 DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
The value that configures the align.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The color of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
The value that configures the color.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The font family of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
The value that configures the font family.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The font size of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
The value that configures the font size.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The font style of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
The value that configures the font style.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The font weight of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
The value that configures the font weight.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The line spacing of the content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> LineSpacing(double value)
The value that configures the line spacing.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The padding of the content.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramShapeContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the padding.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The relative padding of the content as a percentage of the shape size.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> RelativePadding(Action<DiagramShapeContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the relativepadding.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
The value that configures the template.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
The value that configures the template.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
The value that configures the template.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
The text displayed in the shape.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
The value that configures the text.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TextWrap(ShapeTextWrap value)
The value that configures the text wrap.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>