Defines the fluent API for configuring the DiagramLayoutGridSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramLayoutGridSettingsBuilder(DiagramLayoutGridSettings settings)
Methods
Defines the horizontal spacing between each component. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> ComponentSpacingX(double value)
The value that configures the horizontal spacing.
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Defines the vertical spacing between each component. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> ComponentSpacingY(double value)
The value that configures the vertical spacing.
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Defines the left offset of the grid layout. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> OffsetX(double value)
The value that configures the left offset.
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Defines the top offset of the grid layout. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> OffsetY(double value)
The value that configures the top offset.
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
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 the type of layout applied to each component.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
The value that configures the width.
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>