Range properties

In addition to the properties it inherits from the Selection interface, the Range interface supports one property, Duplicate.

Duplicate 
Access  Read-only 
Type  Range 
Description  Returns a copy of the Range object. Any changes to the original range will not affect the copy. 
Usage   
JScript  Range_object.Duplicate;  
VBScript  Range_object.Duplicate 
Example 
// SoftQuad Script Language JSCRIPT:
var rng=ActiveDocument.Range;
var rng1 = rng;
var rng2 = rng.Duplicate; 
// The following statement changes rng *and* rng1,
// but does not change rng2
rng.SelectAfterContainer();
 


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

Copyright © SoftQuad Software Inc. 1999