Returns a point of the alignment grid nearest to the specified point.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public Point AlignPointToGrid ( |
Visual Basic Copy Code |
---|
Public Function AlignPointToGrid( _ |
A point specified in diagram coordinates.
A point from the alignment grid.
Items created or moved by a user are automatically aligned to the grid. However, if items are placed in the diagram programmatically, their coordinates are set to the specified positions without aligning. In such cases use AlignPointToGrid if items must be placed exactly at grid points.
Diagramming for .NET MAUI Guide | © 2024 MindFusion |