• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Localization
*Translated by Google Translator.
Currency
Essential Studio
HOME
All Controls

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.