Show / Hide Table of Contents

Property popupMenu.caretRectFunc


Overload

Sets a user-defined "get caret rectangle" function.

public static Func<RECT?> caretRectFunc { get; set; }
Property Value
Func<RECT?>

Default: null; calls miscInfo.getTextCursorRect.

Remarks

The callback function is called by popupMenu.Show when flags includes PMFlags.ByCaret. Also used by AutotextTriggerArgs.Menu. Let it return a rectangle in screen, or null if failed. For example, it can call miscInfo.getTextCursorRect; if it fails, use an alternative way to get caret rectangle or preferred menu location.