Defines the fluent API for configuring the DiagramEditableDragSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramEditableDragSettingsBuilder(DiagramEditableDragSettings settings)
Methods
Specifies the shapes drag snap options. By default, during dragging, the shapes move by a given number of pixels at once. You can disable this behavior to make shapes movement smooth or you can specify a different number for the drag snap size to simulate a snap-to-grid functionality.
public DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> Snap(Action<DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The action that configures the snap settings.
Returns:DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>
Specifies the shapes drag snap options. By default, during dragging, the shapes move by a given number of pixels at once. You can disable this behavior to make shapes movement smooth or you can specify a different number for the drag snap size to simulate a snap-to-grid functionality.
public DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> Snap(bool enabled)
The value that enables or disables the snap option.
Returns:DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>