New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DiagramConnectionContentSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DiagramConnectionContentSettingsBuilder method.

C#
public DiagramConnectionContentSettingsBuilder(DiagramConnectionContentSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramConnectionContentSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramConnectionContentSettings<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramConnectionContentSettings<TShapeModel, TConnectionModel> Container { get; }

Methods

The background color of the connection label. Accepts valid CSS colors.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Background(string value)
Parameters:valuestring

The value for Background

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The border options of the connection label. Applicable when background is set.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Border(Action<DiagramConnectionContentBorderSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionContentBorderSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramConnectionContentBorderSettingsBuilder<TShapeModel, TConnectionModel> for the border setting.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> .

The color of the connection content text.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Color(string value)
Parameters:valuestring

The value for Color

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font family of the connection content text.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontFamily(string value)
Parameters:valuestring

The value for FontFamily

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font size of the connection content text.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontSize(double value)
Parameters:valuedouble

The value for FontSize

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font style of the connection content text.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontStyle(string value)
Parameters:valuestring

The value for FontStyle

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font weight of the connection content text.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> FontWeight(string value)
Parameters:valuestring

The value for FontWeight

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the distance (in pixels) between the label and the connection path.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Offset(double value)
Parameters:valuedouble

The value for Offset

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The padding options of the connection label. Applicable when background or border is set.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Padding(Action<DiagramConnectionContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionContentPaddingSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramConnectionContentPaddingSettingsBuilder<TShapeModel, TConnectionModel> for the padding setting.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of 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.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Position(Action<DiagramConnectionContentPositionSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionContentPositionSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramConnectionContentPositionSettingsBuilder<TShapeModel, TConnectionModel> for the position setting.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of 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.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Position(string position)
Parameters:positionstring

The position.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> .

The template which renders the labels.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Template(string value)
Parameters:valuestring

The value for Template

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The text displayed for the connection.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Text(string value)
Parameters:valuestring

The value for Text

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

A function returning a visual element to render for the content of the connection.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

A function returning a visual element to render for the content of the connection.

C#
public DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramConnectionContentSettingsBuilder<TShapeModel, TConnectionModel> instance.