CADability dotNET
Returns a snap point according to the current snap settings in the given IView. Sets the cursor if AutoCursor is true.

Namespace: CADability.Actions
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public GeoPoint SnapPoint(
	MouseEventArgs e,
	IView vw,
	out SnapPointFinder..::..DidSnapModes DidSnap
)
Visual Basic
Public Function SnapPoint ( _
	e As MouseEventArgs, _
	vw As IView, _
	<OutAttribute> ByRef DidSnap As SnapPointFinder..::..DidSnapModes _
) As GeoPoint
Visual C++
public:
GeoPoint SnapPoint(
	MouseEventArgs^ e, 
	IView^ vw, 
	[OutAttribute] SnapPointFinder..::..DidSnapModes% DidSnap
)

Parameters

e
Type: System.Windows.Forms..::..MouseEventArgs
point in the view
vw
Type: CADability..::..IView
the view
DidSnap
Type: CADability.GeoObject..::..SnapPointFinder..::..DidSnapModes%
kind of snap operation that was used

Return Value

the best snapping point found

See Also