#Snap To Lines Sample
This sample demonstrates how to enable or disable the snapping to gridlines. It allows the diagram objects to snap to the nearest intersection of the gridlines while being dragged or resized. Snapping to gridlines can be enabled or disabled with the SnapConstraints.
Demo link:
https://blazor.syncfusion.com/demos/diagramcomponent/snapping?theme=fluent
- Visual Studio 2022
- Checkout this project to a location in your disk.
- Open the solution file using the Visual Studio 2022.
- Restore the NuGet packages by rebuilding the solution.
- Run the project.