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

Defines the fluent API for configuring the DiagramConnectionDefaultsStartCapSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramConnectionDefaultsStartCapSettingsBuilder<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 DiagramConnectionDefaultsStartCapSettingsBuilder(DiagramConnectionDefaultsStartCapSettings settings)
Parameters:settingsDiagramConnectionDefaultsStartCapSettings

Methods

The anchor point of the arrow marker. This is the point where the marker will be positioned relative to the line. Applies when the type is "ArrowEnd" or "ArrowStart".

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

The action that configures the anchor.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the default start cap fill options of the connections.

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

The action that configures the fill settings.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.StartCap(startCap =&gt; startCap.Fill(f =&gt; f.Color("yellow")))
)
)

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

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

The value that configures the path.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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

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

The value that configures the radius.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Defines the default start cap stroke options of the connections.

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

The action that configures the stroke settings.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ConnectionDefaults(cd =&gt; cd
.StartCap(startCap =&gt; startCap.Stroke(s =&gt; s.Color("blue").Width(3)))
)
)

Specifies the default start cap type used in the connections. The supported values are: "none" (default), "ArrowStart" (a filled arrow), and "FilledCircle" (a filled circle).

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

The value that configures the start cap type.

Returns:

DiagramConnectionDefaultsStartCapSettingsBuilder<TShapeModel, TConnectionModel>

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