Defines the fluent API for configuring DiagramShapeConnector
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
DiagramShapeConnectorBuilder method.
public DiagramShapeConnectorBuilder(DiagramShapeConnector<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramShapeConnector<TShapeModel, TConnectionModel>
Container member.
protected DiagramShapeConnector<TShapeModel, TConnectionModel> Container { get; }
Methods
The connector description.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Description(string value)
The value for Description
Returns:DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.
Defines the fill options of the shape connectors.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Fill(Action<DiagramShapeConnectorFillSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Fill(string fill)
The fill.
Returns:DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> .
Defines the height of the shape connectors.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Height(double value)
The value for Height
Returns:DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.
Defines the hover configuration of the shape connectors.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramShapeConnectorHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Name(string value)
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.).
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Offset(double value)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Position(Func<object, object> handler)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Position(string handler)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramShapeConnectorStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
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.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Stroke(string stroke)
The stroke.
Returns:DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> .
Defines the width of the shape connectors.
public DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> Width(double value)
The value for Width
Returns:DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeConnectorBuilder<TShapeModel, TConnectionModel> instance.