Defines the fluent API for configuring DiagramLayoutGridSettings
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
DiagramLayoutGridSettingsBuilder method.
public DiagramLayoutGridSettingsBuilder(DiagramLayoutGridSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramLayoutGridSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramLayoutGridSettings<TShapeModel, TConnectionModel> Container { get; }
Methods
Defines the horizontal spacing between each component. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> ComponentSpacingX(double value)
The value for ComponentSpacingX
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the vertical spacing between each component. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> ComponentSpacingY(double value)
The value for ComponentSpacingY
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the left offset of the grid layout. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> OffsetX(double value)
The value for OffsetX
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the top offset of the grid layout. The default is 50.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> OffsetY(double value)
The value for OffsetY
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
The value for Width
Returns:DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramLayoutGridSettingsBuilder<TShapeModel, TConnectionModel> instance.