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

Defines the fluent API for configuring the DiagramConnectionEndCapSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

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

Constructors

C#
public DiagramConnectionEndCapSettingsBuilder(DiagramConnectionEndCapSettings settings)
Parameters:settingsDiagramConnectionEndCapSettings

Methods

The radius of the filled circle marker. Applies when the type is "FilledCircle".

C#
public DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel> Anchor(Action<DiagramConnectionDefaultsEndCapAnchorSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramConnectionDefaultsEndCapAnchorSettingsBuilder<TShapeModel, TConnectionModel>>

The value that configures the radius.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the connection end cap fill options.

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

The action that configures the fill settings.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().EndCap(endCap =&gt; endCap.Fill(f =&gt; f.Color("red")))
)
)

The SVG path data for the arrow marker. Applies when the type is "ArrowEnd" or "ArrowStart".

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

The value that configures the path.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

The radius of the filled circle marker. Applies when the type is "FilledCircle".

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

The value that configures the radius.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the connection end cap stroke options.

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

The action that configures the stroke settings.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().EndCap(endCap =&gt; endCap.Stroke(s =&gt; s.Color("blue").Width(2)))
)
)

Defines the type of the connection end cap. The supported values are: "none" (default), "ArrowEnd" (a filled arrow), and "FilledCircle" (a filled circle). Note: You can also use "ArrowStart" for the endCap but its direction will be inversed.

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

The value that configures the type.

Returns:

DiagramConnectionEndCapSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Connections(c =&gt; c
.Add().EndCap(endCap =&gt; endCap.Type("FilledCircle"))
)
)