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

Defines the fluent API for configuring DiagramShapeContentSettings

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

DiagramShapeContentSettingsBuilder method.

C#
public DiagramShapeContentSettingsBuilder(DiagramShapeContentSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeContentSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeContentSettings<TShapeModel, TConnectionModel>

Container member.

C#
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.

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

The value for Align

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The color of the shape content text.

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

The value for Color

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font family of the shape content text.

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

The value for FontFamily

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font size of the shape content text.

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

The value for FontSize

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font style of the shape content text.

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

The value for FontStyle

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font weight of the shape content text.

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

The value for FontWeight

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The line spacing of the content text.

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

The value for LineSpacing

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The padding of the content.

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

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.

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

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.

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

The value for Template

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

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>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.

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

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.

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

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.

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

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.

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

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".

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

The value for TextWrap

Returns:

DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeContentSettingsBuilder<TShapeModel, TConnectionModel> instance.