public interface Range
| Modifier and Type | Field and Description |
|---|---|
static short |
END_TO_END |
static short |
END_TO_START |
static short |
START_TO_END |
static short |
START_TO_START |
| Modifier and Type | Method and Description |
|---|---|
DocumentFragment |
cloneContents() |
Range |
cloneRange() |
void |
collapse(boolean toStart) |
short |
compareBoundaryPoints(short how,
Range sourceRange) |
void |
deleteContents() |
void |
detach() |
DocumentFragment |
extractContents() |
ClientRect |
getBoundingClientRect() |
ClientRectList |
getClientRects() |
boolean |
getCollapsed() |
Node |
getCommonAncestorContainer() |
Node |
getEndContainer() |
int |
getEndOffset() |
Node |
getStartContainer() |
int |
getStartOffset() |
void |
insertNode(Node newNode) |
void |
selectNode(Node refNode) |
void |
selectNodeContents(Node refNode) |
void |
setEnd(Node refNode,
int offset) |
void |
setEndAfter(Node refNode) |
void |
setEndBefore(Node refNode) |
void |
setStart(Node refNode,
int offset) |
void |
setStartAfter(Node refNode) |
void |
setStartBefore(Node refNode) |
void |
surroundContents(Node newParent) |
String |
toString() |
static final short START_TO_START
static final short START_TO_END
static final short END_TO_END
static final short END_TO_START
Node getStartContainer() throws DOMException
DOMExceptionint getStartOffset()
throws DOMException
DOMExceptionNode getEndContainer() throws DOMException
DOMExceptionint getEndOffset()
throws DOMException
DOMExceptionboolean getCollapsed()
throws DOMException
DOMExceptionNode getCommonAncestorContainer() throws DOMException
DOMExceptionvoid setStart(Node refNode, int offset) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid setEnd(Node refNode, int offset) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid setStartBefore(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid setStartAfter(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid setEndBefore(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid setEndAfter(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid collapse(boolean toStart)
throws DOMException
DOMExceptionvoid selectNode(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionvoid selectNodeContents(Node refNode) throws RangeException, DOMException
RangeExceptionDOMExceptionshort compareBoundaryPoints(short how,
Range sourceRange)
throws DOMException
DOMExceptionvoid deleteContents()
throws DOMException
DOMExceptionDocumentFragment extractContents() throws DOMException
DOMExceptionDocumentFragment cloneContents() throws DOMException
DOMExceptionvoid insertNode(Node newNode) throws DOMException, RangeException
DOMExceptionRangeExceptionvoid surroundContents(Node newParent) throws DOMException, RangeException
DOMExceptionRangeExceptionRange cloneRange() throws DOMException
DOMExceptionString toString() throws DOMException
toString in class ObjectDOMExceptionvoid detach()
throws DOMException
DOMExceptionClientRectList getClientRects()
ClientRect getBoundingClientRect()
Copyright © 2016. All Rights Reserved.