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

Example of Snapping in ASP.NET Core 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 Core web apps today with Syncfusion® ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab