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

Defines the fluent API for configuring the DiagramShapeDefaultsRotationSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramShapeDefaultsRotationSettingsBuilder<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 DiagramShapeDefaultsRotationSettingsBuilder(DiagramShapeDefaultsRotationSettings settings)
Parameters:settingsDiagramShapeDefaultsRotationSettings

Methods

Sets the rotational angle of the shape.

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

The value that configures the angle.

Returns:

DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel>

Example:
C#
@(Html.Kendo().Diagram()
.Name("diagram")
.ShapeDefaults(sd =&gt; sd
.Rotation(r =&gt; r.Angle(25))
)
)