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

Defines the fluent API for configuring DiagramShape

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeBuilder method.

C#
public DiagramShapeBuilder(DiagramShape<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShape<TShapeModel, TConnectionModel>

Properties

Container

DiagramShape<TShapeModel, TConnectionModel>

Container member.

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

Methods

Defines accessibility options for the shape.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

The center point of the shape.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines default options for all connectors belonging to a given shape.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the connectors available in the shape. A connector is the point in the shape where a connection between this shape and another one can originate from or end.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the shapes content settings.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the corner radius of the shape.

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

The value for CornerRadius

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

The data item associated with the shape.

C#
public DiagramShapeBuilder<TShapeModel, TConnectionModel> DataItem(object value)
Parameters:valueobject

The value that configures the data item.

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Defines the shape editable options.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the shape editable options.

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

Enables or disables the editable option.

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the background fill options of the shape.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the background fill options of the shape.

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

The fill.

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Defines the height of the shape when added to the Diagram.

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

The value for Height

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the hover configuration.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. The connection to and from properties usually point to shape id values.

C#
public DiagramShapeBuilder<TShapeModel, TConnectionModel> Id(string value)
Parameters:valuestring

The value for Id

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.

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

The value for MinHeight

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the minimum width the shape should have, that is, it cannot be resized to a value smaller than the given one. See example at shapes.minHeight.

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

The value for MinWidth

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<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 DiagramShapeBuilder<TShapeModel, TConnectionModel> Path(string value)
Parameters:valuestring

The value for Path

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

The radius of circular shapes.

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

The value for Radius

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Specifies a rotation angle for the shape.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

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

Specifies if the shape can be selected.

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

The value for Selectable

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

The source of the shape image. Applicable when the type is set to "image".

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

The value for Source

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the shape border stroke configuration.

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

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

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramShapeBuilder<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 DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(DiagramShapeType value)
Parameters:valueDiagramShapeType

The value for Type

Returns:

DiagramShapeBuilder<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 DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(FlowchartShapeType value)
Parameters:valueFlowchartShapeType

The value for Type

Returns:

DiagramShapeBuilder<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 DiagramShapeBuilder<TShapeModel, TConnectionModel> Type(string value)
Parameters:valuestring

The value for Type

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

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

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

The handler code wrapped in a text tag.

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

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

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

The name of the JavaScript function that will be evaluated.

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the width of the shape when added to the Diagram.

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

The value for Width

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.

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

The value for X

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.

Defines the y-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout. You can see an example at shapes.x

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

The value for Y

Returns:

DiagramShapeBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.