Property SelectedText
SelectedText
Gets the text that corresponds to the current selection, rendered as plain text from the displayed content. Returns null when no selection is active.
public string? SelectedText { get; }
Property Value
Remarks
The returned string reflects the on-screen representation (display text) of the selected
region — not the original markdown source. Markdown structure such as bullet-list
markers (- ), fenced code-block delimiters (```), and heading hashes
(#) may differ from the source document.