Snaps the specified point to the grid.

Namespace: Ico.Gwx
Assembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public Point SnapPointToGrid(
	Point pt,
	GeneralTransform rootTransform
)
Visual Basic
Public Function SnapPointToGrid ( _
	pt As Point, _
	rootTransform As GeneralTransform _
) As Point
JScript
public function SnapPointToGrid(
	pt : Point, 
	rootTransform : GeneralTransform
) : Point

Parameters

pt
Type: System.Windows..::..Point
The point to snap.
rootTransform
Type: System.Windows.Media..::..GeneralTransform
Transform from the coordinate space of the specified point to the "root" space.

Return Value

The snapped point.

See Also