Method | Description | |
---|---|---|
AddRange ( |
Adds a range to the current selection.
|
|
Collapse ( |
Collapses the selection to a single point, at the specified offset in the given DOM node. When the selection is collapsed, and the content is focused and editable, the caret will blink there.
|
|
CollapseToEnd ( ) : void |
Collapses the whole selection to a single point at the end of the current selection (irrespective of direction). If content is focused and editable, the caret will blink there.
|
|
CollapseToStart ( ) : void |
Collapses the whole selection to a single point at the start of the current selection (irrespective of direction). If content is focused and editable, the caret will blink there.
|
|
ContainsNode ( |
Returns whether the specified node is part of the selection.
|
|
DeleteFromDocument ( ) : void |
Deletes this selection from the document.
|
|
Extend ( |
Extends the selection by moving the selection end to the specified node and offset, preserving the selection begin position. The new selection end result will always be from the anchorNode to the new focusNode, regardless of direction.
|
|
GetRangeAt ( int index ) : |
Returns the range at the specified index.
|
|
RemoveAllRanges ( ) : void |
Removes all ranges from the current selection.
|
|
RemoveRange ( |
Removes a range from the current selection.
|
|
SelectAllChildren ( |
Adds all children of the specified node to the selection.
|
|
SelectionLanguageChange ( bool langRtl ) : void |
Modifies the cursor BIDI level after a change in keyboard direction.
|
|
ToString ( ) : string |
Returns the whole selection as a plain text string.
|
Method | Description | |
---|---|---|
GeckoSelection ( nsISelection selection ) : System |
public Collapse ( |
||
parentNode | ||
offset | int | |
return | void |
public ContainsNode ( |
||
node | ||
partlyContained | bool | True if the function should return true when some part of the node is contained with the selection; when false, the function only returns true when the entire node is contained within the selection. |
return | bool |
public Extend ( |
||
parentNode | The node where the selection will be extended to. | |
offset | int | Where in node to place the offset in the new selection end. |
return | void |
public RemoveRange ( |
||
range | ||
return | void |
public SelectAllChildren ( |
||
parentNode | ||
return | void |
public SelectionLanguageChange ( bool langRtl ) : void | ||
langRtl | bool | |
return | void |