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

DiagramEditableDragSettingsBuilder

Methods

Snap(System.Action)

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.

Parameters

configurator - System.Action<DiagramEditableDragSnapSettingsBuilder>

The configurator for the snap setting.

Snap(System.Boolean)

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.

Parameters

enabled - System.Boolean

Enables or disables the snap option.

In this article
Not finding the help you need?