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

Defines the fluent API for configuring DiagramShapeDefaultsContentSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeDefaultsContentSettingsBuilder method.

C#
public DiagramShapeDefaultsContentSettingsBuilder(DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramShapeDefaultsContentSettings<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 DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> Align(string value)
Parameters:valuestring

The value for Align

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The color of the shape content text.

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

The value for Color

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font family of the shape content text.

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

The value for FontFamily

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font size of the shape content text.

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

The value for FontSize

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font style of the shape content text.

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

The value for FontStyle

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The font weight of the shape content text.

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

The value for FontWeight

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The spacing between lines of text in the shape.

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

The value for LineSpacing

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The padding of the shape content.

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

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

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

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

The relative padding of the shape content e.g. 0.03 means 3% of the shape width/height.

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

The DiagramShapeDefaultsContentRelativePaddingSettingsBuilder<TShapeModel, TConnectionModel> for the relativepadding setting.

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

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

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

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

The value for Template

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

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

A Template component that configures the template.

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

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

The handler that returs the template for Template

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

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

The ID of the template element for Template

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.

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

The view that contains the template for Template

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

The text that is displayed in the shape.

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

The value for Text

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.

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

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

The value for TextWrap

Returns:

DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> instance.