Click or drag to resize

GH_ViewportIsVisible Method (RectangleF, Single)

Test visibility of a rectangle.

Namespace:  Grasshopper.GUI.Canvas
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public bool IsVisible(
	ref RectangleF rec,
	float margin = 0f
)

Parameters

rec
Type: System.DrawingRectangleF
Rectangle in canvas coordinates.
margin (Optional)
Type: SystemSingle
Fuzzy area around rectangle to test.

Return Value

Type: Boolean
True if the rectangle is visible in the control upon projection.
See Also