Logo Search packages:      
Sourcecode: xulrunner version File versions

nsISelection Interface Reference

import "nsISelection.idl";

Inheritance diagram for nsISelection:


List of all members.

Detailed Description

Interface for manipulating and querying the current selected range of nodes within the document.



Definition at line 54 of file nsISelection.idl.

Public Member Functions

void addRange (in nsIDOMRange range)
void collapse (in nsIDOMNode parentNode, in long offset)
void collapseToEnd ()
void collapseToStart ()
boolean containsNode (in nsIDOMNode node, in boolean partlyContained)
void deleteFromDocument ()
void extend (in nsIDOMNode parentNode, in long offset)
nsIDOMRange getRangeAt (in long index)
void removeAllRanges ()
void removeRange (in nsIDOMRange range)
void selectAllChildren (in nsIDOMNode parentNode)
void selectionLanguageChange (in boolean langRTL)
wstring toString ()
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute nsIDOMNode anchorNode
readonly attribute long anchorOffset
readonly attribute nsIDOMNode focusNode
readonly attribute long focusOffset
readonly attribute boolean isCollapsed
readonly attribute long rangeCount

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

Generated by  Doxygen 1.6.0   Back to index