Grasshopper API
GH_EtoUtilCenterFormOnCursor Method |
Positions a Form so that it is centered around the cursor
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)
public static void CenterFormOnCursor( this Window F, bool limitToScreen )
<ExtensionAttribute> Public Shared Sub CenterFormOnCursor ( F As Window, limitToScreen As Boolean )
Parameters
- F
- Type: Window
The Form to adjust - limitToScreen
- Type: SystemBoolean
If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor.