This version of Unity is unsupported.

TextInputBaseField<T0>.textSelection

public UIElements.ITextSelection textSelection;

Description

Retrieves this Field's TextElement ITextSelection