Public Member Functions | Public Attributes

nsIDOMRange Interface Reference

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

import "nsIDOMRange.idl";

Collaboration diagram for nsIDOMRange:

List of all members.

Public Member Functions

void setStart (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException)
void setEnd (in nsIDOMNode refNode, in long offset) raises (RangeException, DOMException)
void setStartBefore (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setStartAfter (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setEndBefore (in nsIDOMNode refNode) raises (RangeException, DOMException)
void setEndAfter (in nsIDOMNode refNode) raises (RangeException, DOMException)
void collapse (in boolean toStart) raises (DOMException)
void selectNode (in nsIDOMNode refNode) raises (RangeException, DOMException)
void selectNodeContents (in nsIDOMNode refNode) raises (RangeException, DOMException)
short compareBoundaryPoints (in unsigned short how, in nsIDOMRange sourceRange) raises (DOMException)
void deleteContents () raises (DOMException)
nsIDOMDocumentFragment extractContents () raises (DOMException)
nsIDOMDocumentFragment cloneContents () raises (DOMException)
void insertNode (in nsIDOMNode newNode) raises (DOMException, RangeException)
void surroundContents (in nsIDOMNode newParent) raises (DOMException, RangeException)
nsIDOMRange cloneRange () raises (DOMException)
DOMString toString () raises (DOMException)
void detach ()

Public Attributes

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

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/

Status:
FROZEN

Member Function Documentation

nsIDOMDocumentFragment nsIDOMRange::cloneContents (  )  raises (DOMException)
nsIDOMRange nsIDOMRange::cloneRange (  )  raises (DOMException)
void nsIDOMRange::collapse ( in boolean  toStart  )  raises (DOMException)
short nsIDOMRange::compareBoundaryPoints ( in unsigned short  how,
in nsIDOMRange  sourceRange 
) raises (DOMException)
void nsIDOMRange::deleteContents (  )  raises (DOMException)
void nsIDOMRange::detach (  ) 
nsIDOMDocumentFragment nsIDOMRange::extractContents (  )  raises (DOMException)
void nsIDOMRange::insertNode ( in nsIDOMNode  newNode  )  raises (DOMException, RangeException)
void nsIDOMRange::selectNode ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::selectNodeContents ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::setEnd ( in nsIDOMNode  refNode,
in long  offset 
) raises (RangeException, DOMException)
void nsIDOMRange::setEndAfter ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::setEndBefore ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::setStart ( in nsIDOMNode  refNode,
in long  offset 
) raises (RangeException, DOMException)
void nsIDOMRange::setStartAfter ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::setStartBefore ( in nsIDOMNode  refNode  )  raises (RangeException, DOMException)
void nsIDOMRange::surroundContents ( in nsIDOMNode  newParent  )  raises (DOMException, RangeException)
DOMString nsIDOMRange::toString (  )  raises (DOMException)

Member Data Documentation

readonly attribute boolean nsIDOMRange::collapsed
const unsigned short nsIDOMRange::END_TO_END = 2
const unsigned short nsIDOMRange::END_TO_START = 3
readonly attribute long nsIDOMRange::endOffset
const unsigned short nsIDOMRange::START_TO_END = 1
const unsigned short nsIDOMRange::START_TO_START = 0
readonly attribute long nsIDOMRange::startOffset

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