Defines the fluent API for configuring the DiagramConnectionContentSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramConnectionContentSettingsBuilder(DiagramConnectionContentSettings settings)
Methods
The background color of the connection label. Accepts valid CSS colors.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Background(string value)
The value that configures the background.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The border options of the connection label. Applicable when background is set.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Border(Action<DiagramConnectionContentBorderSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the border.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the color of the connection content text.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
The value that configures the color.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the font family of the connection content text.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
The value that configures the font family.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the font size of the connection content text.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
The value that configures the font size.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the font style of the connection content text.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
The value that configures the font style.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the font weight of the connection content text.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
The value that configures the font weight.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the distance (in pixels) between the label and the connection path.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Offset(double value)
The value that configures the offset.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The padding options of the connection label. Applicable when background or border is set.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramConnectionContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the padding.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines the position of the label relative to the connection path. Can be set to "inline" to position the label along the connection path, or an object with vertical and horizontal properties.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Position(Action<DiagramConnectionContentPositionSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the position.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The template that renders the connection labels.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
The value that configures the template content.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The template that renders the connection labels.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The template that renders the connection labels.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
The value that configures the template content.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The template that renders the connection labels.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
The value that configures the template content.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
The template that renders the connection labels.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
The value that configures the template content.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Sets the label text displayed for the connection.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
The value that configures the text content.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines a JavaScript function that returns a visual element to render the content of the connection.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Visual(Func<object, object> handler)
The value that configures the visual action.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>
Defines a JavaScript function that returns a visual element to render the content of the connection.
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Visual(string handler)
The value that configures the visual action.
Returns:DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>