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

Defines the fluent API for configuring the DiagramConnectionStartCapSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionStartCapSettingsBuilder<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 DiagramConnectionStartCapSettingsBuilder(DiagramConnectionStartCapSettings settings)
Parameters:settingsDiagramConnectionStartCapSettings

Methods

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

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

The value that configures the radius.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the connection start cap fill options.

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

The action that configures the fill.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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

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

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

The value that configures the path.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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

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

The value that configures the radius.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the connection start cap stroke options.

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

The action that configures the stroke.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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

Defines the connection start cap type. The supported values are: "none" (default), "ArrowStart" (a filled arrow), and "FilledCircle" (a filled circle).

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

The value that configures the type.

Returns:

DiagramConnectionStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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