C# 클래스 Skybound.Gecko.GeckoSelection

Manipulates and queries the current selected range of nodes within the document.
파일 보기 프로젝트 열기: tophatmonocle/DirtyGecko

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GeckoSelection ( nsISelection selection ) : System

메소드 상세

AddRange() 공개 메소드

Adds a range to the current selection.
public AddRange ( GeckoRange range ) : void
range GeckoRange
리턴 void

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

CollapseToEnd() 공개 메소드

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
리턴 void

CollapseToStart() 공개 메소드

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
리턴 void

ContainsNode() 공개 메소드

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.
리턴 bool

DeleteFromDocument() 공개 메소드

Deletes this selection from the document.
public DeleteFromDocument ( ) : void
리턴 void

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.
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.
리턴 void

GetRangeAt() 공개 메소드

Returns the range at the specified index.
public GetRangeAt ( int index ) : GeckoRange
index int
리턴 GeckoRange

RemoveAllRanges() 공개 메소드

Removes all ranges from the current selection.
public RemoveAllRanges ( ) : void
리턴 void

RemoveRange() 공개 메소드

Removes a range from the current selection.
public RemoveRange ( GeckoRange range ) : void
range GeckoRange
리턴 void

SelectAllChildren() 공개 메소드

Adds all children of the specified node to the selection.
public SelectAllChildren ( GeckoNode parentNode ) : void
parentNode GeckoNode
리턴 void

SelectionLanguageChange() 공개 메소드

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

ToString() 공개 메소드

Returns the whole selection as a plain text string.
public ToString ( ) : string
리턴 string