MindFusion.Wpf Pack Programmer's Guide
Diagram.AlignPointToGrid Method
See Also
 





Returns a point of the alignment grid nearest to the one passed as an argument.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public virtual Point AlignPointToGrid (
    Point point
)

Visual Basic  Copy Code

Public Overridable Function AlignPointToGrid( _
    point As Point _
) As Point

 Parameters

point

A point specified in diagram coordinates.

 Return Value

A point from the alignment grid.

 Remarks

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.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming.Wpf Namespace
AlignToGrid Property
GridSizeX Property
GridSizeY Property