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

Defines the fluent API for configuring DiagramShapeDefaultsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeDefaultsSettingsBuilder method.

C#
public DiagramShapeDefaultsSettingsBuilder(DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeDefaultsSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel>

Container member.

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

Methods

Defines accessibility options for shapes.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramShapeDefaultsAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsAccessibilitySettingsBuilder<TShapeModel, TConnectionModel> for the accessibility setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the center position of the shape. Applicable for the circle shape.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Center(Action<DiagramShapeDefaultsCenterSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsCenterSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsCenterSettingsBuilder<TShapeModel, TConnectionModel> for the center setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the default options for the shape connectors.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> ConnectorDefaults(Action<DiagramShapeDefaultsConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel> for the connectordefaults setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the connectors the shape owns. A connector is the point in the shape where a connection between this shape and another one can originate from or end. "top" - top connector.; "right" - right connector.; "bottom" - bottom connector.; "bottomRight" - bottom right connector.; "left" - left connector. or "auto" - auto connector.. You can define your own custom connectors or use the predefined types.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Connectors(Action<DiagramShapeDefaultsSettingsConnectorFactory<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsSettingsConnectorFactory<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsSettingsConnectorFactory<TShapeModel, TConnectionModel> for the connectors setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the default shapes content settings.

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

The DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> for the content setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the corner radius of the shape.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
Parameters:valuedouble

The value for CornerRadius

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the shape editable options.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> for the editable setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the shape editable options.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
Parameters:enabledbool

Enables or disables the editable option.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the fill options of the shape. Use these settings to apply a single-color or a gradient background to all shapes in the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Fill(Action<DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel> for the fill setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the fill options of the shape. Use these settings to apply a single-color or a gradient background to all shapes in the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Fill(string fill)
Parameters:fillstring

The fill.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the default height of shapes in the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Height(double value)
Parameters:valuedouble

The value for Height

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the hover configuration.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramShapeDefaultsHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsHoverSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsHoverSettingsBuilder<TShapeModel, TConnectionModel> for the hover setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the minimum height the shape can have. Use this setting to apply a lower limit to the height of shapes when users resize them.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> MinHeight(double value)
Parameters:valuedouble

The value for MinHeight

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the minimum width the shape can have. Use this setting to apply a lower limit to the width of shapes when users resize them.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> MinWidth(double value)
Parameters:valuedouble

The value for MinWidth

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (https://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Path(string value)
Parameters:valuestring

The value for Path

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the radius of the shape. Applicable for the circle shape.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Radius(double value)
Parameters:valuedouble

The value for Radius

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the rotation of the shape.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Rotation(Action<DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel> for the rotation setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Specifies if Diagram shapes can be selected.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
Parameters:valuebool

The value for Selectable

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

The path/URL to the shape image. Applicable when the type is set to "image".

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Source(string value)
Parameters:valuestring

The value for Source

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the configuration of the border around Diagram shapes.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramShapeDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramShapeDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramShapeDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel> for the stroke setting.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

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

Specifies the type of the Diagram Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(DiagramShapeType value)
Parameters:valueDiagramShapeType

The value for Type

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Specifies the type of the Workflow Shape type using any of the built-in shape types. Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(FlowchartShapeType value)
Parameters:valueFlowchartShapeType

The value for Type

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> instance.

Specifies the type of the Shape using any of the built-in shape type. rectangle: this is the default option; circle: a circle/ellipse; image: an image or text: some text. Or common workflow shapes as: Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention..

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(string value)
Parameters:valuestring

The value for Type

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

A function that returns a visual element to render for a given shape. The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.

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

The handler code wrapped in a text tag.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

A function that returns a visual element to render for a given shape. The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.

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

The name of the JavaScript function that will be evaluated.

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the default width of shapes in the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
Parameters:valuedouble

The value for Width

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the x-coordinate of shapes added to the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> X(double value)
Parameters:valuedouble

The value for X

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.

Defines the y-coordinate of shapes added to the Diagram.

C#
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Y(double value)
Parameters:valuedouble

The value for Y

Returns:

DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.