Positions the anchor and caretPosition explicitly.
Parameters:
anchor
caretPosition
Diagram: TextInputControl