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

Defines the fluent API for configuring the DiagramShapeContentSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramShapeContentSettingsBuilder(DiagramShapeContentSettings settings)
Parameters:settingsDiagramShapeContentSettings

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.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
Parameters:valuestring

The value that configures the align.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The color of the shape content text.

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

The value that configures the color.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The font family of the shape content text.

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

The value that configures the font family.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The font size of the shape content text.

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

The value that configures the font size.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The font style of the shape content text.

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

The value that configures the font style.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The font weight of the shape content text.

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

The value that configures the font weight.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The line spacing of the content text.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> LineSpacing(double value)
Parameters:valuedouble

The value that configures the line spacing.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The padding of the content.

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

The action that configures the padding.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The relative padding of the content as a percentage of the shape size.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> RelativePadding(Action<DiagramShapeContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel>>

The action that configures the relativepadding.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The template which renders the labels.

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

The value that configures the template.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The template which renders the labels.

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

A Template component that configures the template.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The template which renders the labels.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The template which renders the labels.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The template which renders the labels.

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

The text displayed in the shape.

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

The value that configures the text.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".

C#
public DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> TextWrap(ShapeTextWrap value)
Parameters:valueShapeTextWrap

The value that configures the text wrap.

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>