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

Defines the fluent API for configuring the DiagramSelectableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramSelectableSettingsBuilder<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 DiagramSelectableSettingsBuilder(DiagramSelectableSettings settings)
Parameters:settingsDiagramSelectableSettings

Methods

Defines the fill configuration for the selection rectangle.

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

The action that configures the fill.

Returns:

DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel>

Defines the meta key when doing a visual selection through drawing a rectangular area around shapes in the canvas. This option does not change the way a single shape is selected when using click or tap. To avoid clashes, verify that the selectable.key and pannable.key are different.

C#
public DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel> Key(DiagramSelectableKey value)
Parameters:valueDiagramSelectableKey

The value that configures the meta key.

Returns:

DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Selectable(s =&gt; s.Key(DiagramSelectableKey.Ctrl))
)

Specifies if the multiple selection must be enabled.

C#
public DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel> Multiple(bool value)
Parameters:valuebool

The value that configures the multiple selection.

Returns:

DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Selectable(s =&gt; s.Multiple(false))
)

Defines the offset (in pixels) of the selection rectangle from the shape bounds.

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

The value that configures the offset.

Returns:

DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel>

Defines the selection line configuration.

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

The action that configures the stroke settings.

Returns:

DiagramSelectableSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Selectable(s =&gt; s.Stroke(stroke =&gt; stroke.Color("blue").Width(2).DashType(DiagramDashType.Dot)))
)