Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsIDOMRange Interface Reference

import "nsIDOMRange.idl";

Inheritance diagram for nsIDOMRange:


List of all members.

Detailed Description

The nsIDOMRange interface is an interface to a DOM range object.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/


Definition at line 52 of file nsIDOMRange.idl.

Public Member Functions

nsIDOMDocumentFragment cloneContents () raises (DOMException)
nsIDOMRange cloneRange () raises (DOMException)
void collapse (in boolean toStart) raises (DOMException)
short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange) raises (DOMException)
void deleteContents () raises (DOMException)
void detach () raises (DOMException)
nsIDOMDocumentFragment extractContents () raises (DOMException)
void insertNode (in nsIDOMNode newNode) raises (DOMException, RangeException)
void selectNode (in nsIDOMNode refNode) raises (RangeException, DOMException)
void selectNodeContents (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setEnd (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException)
void setEndAfter (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setEndBefore (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setStart (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException)
void setStartAfter (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setStartBefore (in nsIDOMNode refNode) raises (RangeException, DOMException)
void surroundContents (in nsIDOMNode newParent) raises (DOMException, RangeException)
DOMString toString () raises (DOMException)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute boolean collapsed
readonly attribute nsIDOMNode commonAncestorContainer
const unsigned short END_TO_END = 2
const unsigned short END_TO_START = 3
readonly attribute nsIDOMNode endContainer
readonly attribute long endOffset
const unsigned short START_TO_END = 1
const unsigned short START_TO_START = 0
readonly attribute nsIDOMNode startContainer
readonly attribute long startOffset

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index