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

Kendo UI DiagramLayoutGridSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

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

Inheritance: objectDiagramLayoutGridSettings<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 DiagramLayoutGridSettings()

Properties

Defines the horizontal spacing between each component. The default is 50.

C#
public double? ComponentSpacingX { get; set; }

Defines the vertical spacing between each component. The default is 50.

C#
public double? ComponentSpacingY { get; set; }

Diagram

Diagram<TShapeModel, TConnectionModel>

Diagram member.

C#
public Diagram<TShapeModel, TConnectionModel> Diagram { get; set; }

Defines the left offset of the grid layout. The default is 50.

C#
public double? OffsetX { get; set; }

Defines the top offset of the grid layout. The default is 50.

C#
public double? OffsetY { get; set; }

Defines the width of the grid. The bigger this parameter the more components will be organized in an horizontal row. How many components really depends on your diagram and they type of layout applied to each component. The default is set to 800.

C#
public double? Width { get; set; }

Methods

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>