TextSelection module
- class TextSelection.TextSelection
Bases:
SpireObjectRepresents a text selection.
- property Count: int
Gets the number of text items in the selection.
- GetAsOneRange
Gets the selection as a single text range.
- GetAsRange
Gets as range. more than one paragraph,every paragraph to one text range.
@return List[TextRange]
- GetEnumerator() IEnumerator
Gets an enumerator for the text selection.
- GetRanges() List[TextRange]
Gets the ranges in one paragraph. @return List[TextRange]
- property SelectedText: str
Gets the selected text.
- get_Item(index: int) str
Gets the text at the specified index.
- set_Item(index: int, value: str)
Sets the text at the specified index.
