TextRange.compareEndPoints() Method
TextRange.compareEndPoints() Method
Select text in the paragraph in various places relative to
the fixed text range (shown in red).
Property Returned Value Fixed Range vs. Selection
StartToEnd
Start of Fixed
vs. End of Selection
StartToStart
Start of Fixed
vs. Start of Selection
EndToStart
End of Fixed
vs. Start of Selection
EndToEnd
End of Fixed
vs. End of Selection
Text, Text,Text,Text,Text,Text,Text,Text,Text,Text,
Text,Text,Text,Text,Text,Text,Text,Text,,
Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,Text,