C# Class Skybound.Gecko.GeckoSelection

Manipulates and queries the current selected range of nodes within the document.
Afficher le fichier Open project: tophatmonocle/DirtyGecko

Méthodes publiques

Méthode Description
AddRange ( GeckoRange range ) : void

Adds a range to the current selection.

Collapse ( GeckoNode parentNode, int offset ) : void

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 ( GeckoNode node, bool partlyContained ) : bool

Returns whether the specified node is part of the selection.

DeleteFromDocument ( ) : void

Deletes this selection from the document.

Extend ( GeckoNode parentNode, int offset ) : void

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 ) : GeckoRange

Returns the range at the specified index.

RemoveAllRanges ( ) : void

Removes all ranges from the current selection.

RemoveRange ( GeckoRange range ) : void

Removes a range from the current selection.

SelectAllChildren ( GeckoNode parentNode ) : void

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.

Private Methods

Méthode Description
GeckoSelection ( nsISelection selection ) : System

Method Details

AddRange() public méthode

Adds a range to the current selection.
public AddRange ( GeckoRange range ) : void
range GeckoRange
Résultat void

Collapse() public méthode

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.
public Collapse ( GeckoNode parentNode, int offset ) : void
parentNode GeckoNode
offset int
Résultat void

CollapseToEnd() public méthode

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.
public CollapseToEnd ( ) : void
Résultat void

CollapseToStart() public méthode

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.
public CollapseToStart ( ) : void
Résultat void

ContainsNode() public méthode

Returns whether the specified node is part of the selection.
public ContainsNode ( GeckoNode node, bool partlyContained ) : bool
node GeckoNode
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.
Résultat bool

DeleteFromDocument() public méthode

Deletes this selection from the document.
public DeleteFromDocument ( ) : void
Résultat void

Extend() public méthode

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.
public Extend ( GeckoNode parentNode, int offset ) : void
parentNode GeckoNode The node where the selection will be extended to.
offset int Where in node to place the offset in the new selection end.
Résultat void

GetRangeAt() public méthode

Returns the range at the specified index.
public GetRangeAt ( int index ) : GeckoRange
index int
Résultat GeckoRange

RemoveAllRanges() public méthode

Removes all ranges from the current selection.
public RemoveAllRanges ( ) : void
Résultat void

RemoveRange() public méthode

Removes a range from the current selection.
public RemoveRange ( GeckoRange range ) : void
range GeckoRange
Résultat void

SelectAllChildren() public méthode

Adds all children of the specified node to the selection.
public SelectAllChildren ( GeckoNode parentNode ) : void
parentNode GeckoNode
Résultat void

SelectionLanguageChange() public méthode

Modifies the cursor BIDI level after a change in keyboard direction.
public SelectionLanguageChange ( bool langRtl ) : void
langRtl bool
Résultat void

ToString() public méthode

Returns the whole selection as a plain text string.
public ToString ( ) : string
Résultat string