public class Range extends Object
Modifier and Type | Field and Description |
---|---|
Boolean |
collapsed |
Node |
commonAncestorContainer |
double |
END_TO_END |
double |
END_TO_START |
Node |
endContainer |
double |
endOffset |
static Range |
prototype |
double |
START_TO_END |
double |
START_TO_START |
Node |
startContainer |
double |
startOffset |
constructor
Constructor and Description |
---|
Range() |
Modifier and Type | Method and Description |
---|---|
DocumentFragment |
cloneContents() |
Range |
cloneRange() |
void |
collapse(Boolean toStart) |
double |
compareBoundaryPoints(double how,
Range sourceRange) |
DocumentFragment |
createContextualFragment(String fragment) |
void |
deleteContents() |
void |
detach() |
Boolean |
expand(String Unit) |
DocumentFragment |
extractContents() |
ClientRect |
getBoundingClientRect() |
ClientRectList |
getClientRects() |
void |
insertNode(Node newNode) |
void |
selectNode(Node refNode) |
void |
selectNodeContents(Node refNode) |
void |
setEnd(Node refNode,
double offset) |
void |
setEndAfter(Node refNode) |
void |
setEndBefore(Node refNode) |
void |
setStart(Node refNode,
double offset) |
void |
setStartAfter(Node refNode) |
void |
setStartBefore(Node refNode) |
void |
surroundContents(Node newParent) |
String |
toString()
Returns a string representation of an object.
|
$applyStatic, $applyStatic, $delete, $delete, $get, $get, $set, $set, $super, assign, create, create, defineProperties, defineProperty, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, hasOwnProperty, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, propertyIsEnumerable, propertyIsEnumerable, seal, toJSString, toLocaleString, valueOf
public Boolean collapsed
public Node commonAncestorContainer
public Node endContainer
public double endOffset
public Node startContainer
public double startOffset
public double END_TO_END
public double END_TO_START
public double START_TO_END
public double START_TO_START
public static Range prototype
public DocumentFragment cloneContents()
public Range cloneRange()
public void collapse(Boolean toStart)
public double compareBoundaryPoints(double how, Range sourceRange)
public DocumentFragment createContextualFragment(String fragment)
public void deleteContents()
public void detach()
public DocumentFragment extractContents()
public ClientRect getBoundingClientRect()
public ClientRectList getClientRects()
public void insertNode(Node newNode)
public void selectNode(Node refNode)
public void selectNodeContents(Node refNode)
public void setEnd(Node refNode, double offset)
public void setEndAfter(Node refNode)
public void setEndBefore(Node refNode)
public void setStart(Node refNode, double offset)
public void setStartAfter(Node refNode)
public void setStartBefore(Node refNode)
public void surroundContents(Node newParent)