Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIDOMRange Interface Reference

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

import "nsIDOMRange.idl";

Inheritance diagram for nsIDOMRange:
Inheritance graph
[legend]
Collaboration diagram for nsIDOMRange:
Collaboration graph
[legend]

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 () raises (DOMException)

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/

FROZEN

Definition at line 52 of file nsIDOMRange.idl.


Member Function Documentation

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 ( ) 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

Definition at line 66 of file nsIDOMRange.idl.

Definition at line 69 of file nsIDOMRange.idl.

const unsigned short nsIDOMRange::END_TO_END = 2

Definition at line 94 of file nsIDOMRange.idl.

const unsigned short nsIDOMRange::END_TO_START = 3

Definition at line 95 of file nsIDOMRange.idl.

Definition at line 60 of file nsIDOMRange.idl.

Definition at line 63 of file nsIDOMRange.idl.

const unsigned short nsIDOMRange::START_TO_END = 1

Definition at line 93 of file nsIDOMRange.idl.

const unsigned short nsIDOMRange::START_TO_START = 0

Definition at line 92 of file nsIDOMRange.idl.

Definition at line 54 of file nsIDOMRange.idl.

Definition at line 57 of file nsIDOMRange.idl.


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