Method SetPosition
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
idealScreenPositionPoint?The ideal screen-relative position. If null, uses
anchoror the current mouse position.anchorRectangle?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.