• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Snapping in ASP.NET MVC Diagram Control

This sample shows how diagram objects snap to the nearest intersection of gridlines or objects while being dragged or resized.

DEMO
SOURCE
Properties
Snapping Interval
Snapping Angle
Snapping Line Color
Snapping To Lines

The SnapInterval property in snapSettings allows you to specify the interval at which objects should snap to a grid or other objects in the control.

The snapAngle property in snapSettings allows you to define the snap angle by which the object needs to be rotated.

The snapLineColor property is used to set the color of the snap lines that appear when objects snap to a grid or other objects in the control.

The constraints property controls the visibility of gridlines and enables or disables snapping.


Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE