Table of Contents

Method SetPosition

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

SetPosition(Point?, Rectangle?)

Sets the position of the popover based on idealScreenPosition or anchor. The actual position may be adjusted to ensure full visibility on screen.

public void SetPosition(Point? idealScreenPosition = null, Rectangle? anchor = null)

Parameters

idealScreenPosition Point?

The ideal screen-relative position. If null, uses anchor or the current mouse position.

anchor Rectangle?

Optional anchor rectangle. If null, uses the Anchor property.

Remarks

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