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

Defines the fluent API for configuring DiagramShapeConnector

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

Constructors

DiagramShapeConnectorBuilder method.

C#
public DiagramShapeConnectorBuilder(DiagramShapeConnector<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramShapeConnector<TShapeModel, TConnectionModel>

Properties

Container

DiagramShapeConnector<TShapeModel, TConnectionModel>

Container member.

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

Methods

The connector description.

C#
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Description(string value)
Parameters:valuestring

The value for Description

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

Defines the fill options of the shape connectors.

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

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

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

Defines the fill options of the shape connectors.

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

The fill.

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

Defines the height of the shape connectors.

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

The value for Height

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

Defines the hover configuration of the shape connectors.

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

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

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

The connector name. The predefined names are: "top" - top connector; "right" - right connector; "bottom" - bottom connector; "bottomRight" - bottom right connector; "left" - left connector or "auto" - auto connector.

C#
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Name(string value)
Parameters:valuestring

The value for Name

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

Defines the offset applied to the connector position. The offset pushes the connector away from the shape edge by the specified number of pixels in the direction appropriate for the connector's position (e.g., upward for "top", downward for "bottom", etc.).

C#
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Offset(double value)
Parameters:valuedouble

The value for Offset

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

The function that positions the connector. The function is passed a shape as parameter and should return a kendo.dataviz.diagram.Point indicating where the connector should be placed.

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

The handler code wrapped in a text tag.

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

The function that positions the connector. The function is passed a shape as parameter and should return a kendo.dataviz.diagram.Point indicating where the connector should be placed.

C#
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Position(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.

Defines the stroke options of the shape connectors.

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

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

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

Defines the stroke options of the shape connectors.

C#
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Stroke(string stroke)
Parameters:strokestring

The stroke.

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

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

Defines the width of the shape connectors.

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

The value for Width

Returns:

DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>

Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.