Table of Contents

Method SetPosition

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

SetPosition(Point?)

Sets the position of the popover menu at idealScreenPosition. The actual position will be adjusted to ensure the menu fully fits on the screen, with the mouse cursor positioned over the first cell of the first MenuItem (if possible).

public void SetPosition(Point? idealScreenPosition = null)

Parameters

idealScreenPosition Point?

The ideal screen-relative position for the menu. If null, the current mouse position will be used.

Remarks

This method only sets the position; it does not make the popover visible. Use MakeVisible(Point?) to both position and show the popover.