webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
DOMSelection Interface Reference

import"DOMSelection.idl";

Public Member Functions

void collapse (Node? node, optional unsigned long offset=0)
 
void collapseToEnd ()
 
void collapseToStart ()
 
void deleteFromDocument ()
 
boolean containsNode (Node node, optional boolean allowPartial=false)
 
void selectAllChildren (Node node)
 
void extend (Node node, optional unsigned long offset=0)
 
Range getRangeAt (unsigned long index)
 
void removeAllRanges ()
 
void addRange (Range range)
 
DOMString toString ()
 
void setBaseAndExtent (Node? baseNode, unsigned long baseOffset, Node? extentNode, unsigned long extentOffset)
 
void setPosition (Node? node, optional unsigned long offset=0)
 
void empty ()
 
void modify (optional DOMString alter="undefined", optional DOMString direction="undefined", optional DOMString granularity="undefined")
 

Public Attributes

readonly attribute Node anchorNode
 
readonly attribute unsigned long anchorOffset
 
readonly attribute Node focusNode
 
readonly attribute unsigned long focusOffset
 
readonly attribute boolean isCollapsed
 
readonly attribute unsigned long rangeCount
 
readonly attribute DOMString type
 
readonly attribute Node baseNode
 
readonly attribute unsigned long baseOffset
 
readonly attribute Node extentNode
 
readonly attribute unsigned long extentOffset
 

Member Function Documentation

◆ addRange()

void DOMSelection::addRange ( Range  range)

◆ collapse()

void DOMSelection::collapse ( Node node,
optional unsigned long  offset = 0 
)

◆ collapseToEnd()

void DOMSelection::collapseToEnd ( )

◆ collapseToStart()

void DOMSelection::collapseToStart ( )

◆ containsNode()

boolean DOMSelection::containsNode ( Node  node,
optional boolean  allowPartial = false 
)

◆ deleteFromDocument()

void DOMSelection::deleteFromDocument ( )

◆ empty()

void DOMSelection::empty ( )

◆ extend()

void DOMSelection::extend ( Node  node,
optional unsigned long  offset = 0 
)

◆ getRangeAt()

Range DOMSelection::getRangeAt ( unsigned long  index)

◆ modify()

void DOMSelection::modify ( optional DOMString  alter = "undefined",
optional DOMString  direction = "undefined",
optional DOMString  granularity = "undefined" 
)

◆ removeAllRanges()

void DOMSelection::removeAllRanges ( )

◆ selectAllChildren()

void DOMSelection::selectAllChildren ( Node  node)

◆ setBaseAndExtent()

void DOMSelection::setBaseAndExtent ( Node baseNode,
unsigned long  baseOffset,
Node extentNode,
unsigned long  extentOffset 
)

◆ setPosition()

void DOMSelection::setPosition ( Node node,
optional unsigned long  offset = 0 
)

◆ toString()

DOMString DOMSelection::toString ( )

Member Data Documentation

◆ anchorNode

readonly attribute Node DOMSelection::anchorNode

◆ anchorOffset

readonly attribute unsigned long DOMSelection::anchorOffset

◆ baseNode

readonly attribute Node DOMSelection::baseNode

◆ baseOffset

readonly attribute unsigned long DOMSelection::baseOffset

◆ extentNode

readonly attribute Node DOMSelection::extentNode

◆ extentOffset

readonly attribute unsigned long DOMSelection::extentOffset

◆ focusNode

readonly attribute Node DOMSelection::focusNode

◆ focusOffset

readonly attribute unsigned long DOMSelection::focusOffset

◆ isCollapsed

readonly attribute boolean DOMSelection::isCollapsed

◆ rangeCount

readonly attribute unsigned long DOMSelection::rangeCount

◆ type

readonly attribute DOMString DOMSelection::type

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