The Range interface

A Range object represents a range of selected content in any open document. By contrast, the Selection object always represents the user's current selection. Range inherits the properties and methods of the Selection interface.

A Range object is created using the Document.Range property, which returns a Range object corresponding to the document's selection. You can have multiple Range objects at one time, but only one Selection object (corresponding to the user selection). Range objects are `invisible': if you move a Range object to a location and want to see it, you have to select it using the Range.Select method.

Range properties

Range methods


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999