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

Defines the fluent API for configuring the DiagramShapeRotationSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeRotationSettingsBuilder<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 DiagramShapeRotationSettingsBuilder(DiagramShapeRotationSettings settings)
Parameters:settingsDiagramShapeRotationSettings

Methods

Defines the rotation angle for the shape.

C#
public DiagramShapeRotationSettingsBuilder<TShapeModel, TConnectionModel> Angle(double value)
Parameters:valuedouble

The value that configures the angle.

Returns:

DiagramShapeRotationSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.Shapes(shape =&gt; shape
.Add().Rotation(r =&gt; r.Angle(45))
)
)