Table of Contents

Method MakeVisible

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

MakeVisible(Point?)

Makes the popover menu visible and locates it at idealScreenPosition. The actual position of the menu 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.

public void MakeVisible(Point? idealScreenPosition = null)

Parameters

idealScreenPosition Point?

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

Remarks

IMPORTANT: The popover must be registered with Popover before calling this method. Call Register(IPopover?) first.

This method internally calls Show(IPopover?), which will throw InvalidOperationException if the popover is not registered.

Exceptions

InvalidOperationException

Thrown if the popover has not been registered.