DocumentRange Interface

Table 2-10 summarizes the methods available through DocumentRange interface.

Table 2-10 Summary of DocumentRange Methods; Dom Package

Function Summary

DocumentRange()

Constructor.

createRange()

Create new range object.

destroyRange()

Destroys Range object.

~DocumentRange()

Default destructor.



DocumentRange()

Constructs the factory.

Syntax

DocumentRange();

Returns

(DocumentRange) new factory object


createRange()

Create new range object.

Syntax

Range< Node>* createRange( 
   DocumentRef< Node>& doc);
Parameter Description
doc
reference to document node

Returns

(Range*) Pointer to new range


destroyRange()

Destroys range object.

Syntax

void destroyRange( 
   Range< Node>* range)
throw (DOMException);
Parameter Description
range
range


~DocumentRange()

Default destructor.

Syntax

~DocumentRange();