Defines the fluent API for configuring DiagramEditableDragSettings
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
DiagramEditableDragSettingsBuilder method.
public DiagramEditableDragSettingsBuilder(DiagramEditableDragSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramEditableDragSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramEditableDragSettings<TShapeModel, TConnectionModel> Container { get; }
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 DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel> for the snap setting.
Returns:DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of 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)
Enables or disables the snap option.
Returns:DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel> .