GH_Gradient.NearestGrip Method (RectangleF, PointF, Double)

GH_GradientNearestGrip Method (RectangleF, PointF, Double)

Find the nearest grip in screen coordinates.

Namespace:  Grasshopper.GUI.Gradient
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public int NearestGrip(
	RectangleF dest,
	PointF pt,
	double maxRadius
)
Public Function NearestGrip ( 
	dest As RectangleF,
	pt As PointF,
	maxRadius As Double
) As Integer

Parameters

dest
Type: System.DrawingRectangleF
Retangle that contains the entire gradient.
pt
Type: System.DrawingPointF
Point to search from.
maxRadius
Type: SystemDouble
Maximum distance between point and grip.

Return Value

Type: Int32
The grip closest to the point.
See Also