Note:Hidden characters are counted even if they’re not dis
-
played. If starting and ending positions are not specified, the entire
document is returned as a Range object.
Using the Range Property
Another way to create a Range object is to use the Range
property of an object in the document. This property returns a
Range object that represents the portion of a document that’s
contained in the specified object. The Range property is
read-only.
The Selection Object
Another useful object, very similar to the Range object, is the
Selection object. However, the Selection object has one key
difference: There can only be one Selection object per pane in
a document ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.