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

Defines the fluent API for configuring the DiagramEditableResizeHandlesSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramEditableResizeHandlesSettingsBuilder<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 DiagramEditableResizeHandlesSettingsBuilder(DiagramEditableResizeHandlesSettings settings)
Parameters:settingsDiagramEditableResizeHandlesSettings

Methods

Specifies the fill settings of the resizing handles.

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

The action that configures the fill.

Returns:

DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Resize(r =&gt; r.Handles(h =&gt; h.Fill(f =&gt;f.Color("red").Opacity(0.5)))))
)

Specifies the height of the resizing handles.

C#
public DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel> Height(double value)
Parameters:valuedouble

The value that configures the height.

Returns:

DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Resize(r =&gt; r.Handles(h =&gt; h.Height(10))))
)

Specifies the settings of the resizing handles on hovering over them.

C#
public DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramEditableResizeHandlesHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramEditableResizeHandlesHoverSettingsBuilder<TShapeModel, TConnectionModel>>

The action that configures the hover.

Returns:

DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Resize(r =&gt; r.Handles(h =&gt; h.Hover(hh =&gt; hh.Fill(f =&gt; f.Color("green").Opacity(0.8))))))
)

Specifies the stroke of the resizing handles.

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

The action that configures the stroke.

Returns:

DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Resize(r =&gt; r.Handles(h =&gt; h.Stroke(s =&gt; s.Color("blue").Width(1)))))
)

Specifies the width of the resizing handles.

C#
public DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

DiagramEditableResizeHandlesSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Editable(e =&gt; e.Resize(r =&gt; r.Handles(h =&gt; h.Width(10))))
)