Public Member Functions | |
| Range () | |
| Range (int s, int e, Node start, Node end) | |
| Range (HtmlDocument doc) | |
| void | setStart (Node start, int offset) |
| void | setEnd (Node end, int offset) |
| void | setStartBefore (Node refNode) |
| void | setEndBefore (Node refNode) |
| void | setStartAfter (Node refNode) |
| void | setEndAfter (Node refNode) |
| void | collapse (bool toStart) |
| void | select (Node refNode) |
| void | deleteContents () |
| Deletes all nodes in the range. More... | |
| override string | ToString () |
| Gets selected text as a string. More... | |
| bool | contains (Node n) |
| True if the given node is within this range. More... | |
| bool | intersects (Node node) |
| Range | cloneRange () |
Public Attributes | |
| int | startOffset |
| <suummary>Where in startContainer the range starts. More... | |
| int | endOffset |
| <suummary>Where in endContainer the range ends. More... | |
| Node | startContainer |
| The node within which the range starts. More... | |
| Node | endContainer |
| The node within which the range ends. More... | |
Properties | |
| bool | isCollapsed [get] |
| Returns a Boolean indicating whether the selection's start and end points are at the same position. More... | |
| Node | rootNode [get] |
| Node | commonAncestorContainer [get] |
| A common ancestor for both start and end. More... | |
| IEnumerable< Node > | containedNodes [get] |
| NodeList | childNodes [get] |
| All the nodes within the range. More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
True if the given node is within this range.
|
inline |
Deletes all nodes in the range.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets selected text as a string.
| Node PowerUI.Range.endContainer |
The node within which the range ends.
| int PowerUI.Range.endOffset |
<suummary>Where in endContainer the range ends.
| Node PowerUI.Range.startContainer |
The node within which the range starts.
| int PowerUI.Range.startOffset |
<suummary>Where in startContainer the range starts.
|
get |
All the nodes within the range.
|
get |
A common ancestor for both start and end.
|
getprivate |
|
get |
Returns a Boolean indicating whether the selection's start and end points are at the same position.
|
get |