GH_EtoUtil

public module GH_EtoUtil

Methods

CenterFormOnCursor

#Example
public static void CenterFormOnCursor(this Window F, bool limitToScreen)
Positions a Form so that it is centered around the cursor
F (Window)The Form to adjust
limitToScreen (bool)If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor.

CenterFormOnEditor

#Example
public static void CenterFormOnEditor(this Window F, bool limitToScreen)
Positions a Form so that it is centered on the active editor. If the editor doesn't exist or is hidden, the form will be centered on the screen instead.
F (Window)The Form to adjust
limitToScreen (bool)If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor.

CenterFormOnScreen

#Example
public static void CenterFormOnScreen(this Window F, bool limitToScreen)
Positions a Form so that it is centered on the current screen. The current screen being defined as the screen containing the cursor.
F (Window)The Form to adjust
limitToScreen (bool)If True, the Form won't be allowed to extend beyond the limits of the active screen.

CenterFormOnWindow

#Example
public static void CenterFormOnWindow(this Window F, Window parentWindow, bool limitToScreen)
Positions a Form so that it is centered on the supplied window. If the window doesn't exist or is hidden, the form will be centered on the screen instead.
F (Window)The Form to adjust
parentWindow (Window)
limitToScreen (bool)If True, the Form won't be allowed to extend beyond the limits of the screen containing the cursor.