Defines the fluent API for configuring DiagramShapeContentSettings
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
DiagramShapeContentSettingsBuilder method.
public DiagramShapeContentSettingsBuilder(DiagramShapeContentSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramShapeContentSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramShapeContentSettings<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 DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
The value for Align
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The color of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
The value for Color
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font family of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
The value for FontFamily
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font size of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
The value for FontSize
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font style of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
The value for FontStyle
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The font weight of the shape content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
The value for FontWeight
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The line spacing of the content text.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> LineSpacing(double value)
The value for LineSpacing
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The padding of the content.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramShapeContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeContentPaddingSettingsBuilder<TShapeModel, TConnectionModel> for the padding setting.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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 DiagramShapeContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel> for the relativepadding setting.
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> .
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
The value for Template
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
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>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string templateId)
The ID of the template element for Template
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The template which renders the labels.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
The text displayed in the shape.
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
The value for Text
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TextWrap(ShapeTextWrap value)
The value for TextWrap
Returns:DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.