Grasshopper API
GH_ViewportIsVisible Method (RectangleF, Single) |
Test visibility of a rectangle.
Namespace: Grasshopper.GUI.Canvas
Assembly: Grasshopper (in Grasshopper.dll)

public bool IsVisible( ref RectangleF rec, float margin = 0f )
Public Function IsVisible ( ByRef rec As RectangleF, Optional margin As Single = 0F ) As Boolean
Parameters
- rec
- Type: System.DrawingRectangleF
Rectangle in canvas coordinates. - margin (Optional)
- Type: SystemSingle
Fuzzy area around rectangle to test.
Return Value
Type: BooleanTrue if the rectangle is visible in the control upon projection.
