Click or drag to resize

TextSelection GetAsRange Method (Boolean)

Returns an array of TextRange objects representing the selected text in the RichTextBox control. If isCopyFormat is true, the format of the selected text is also copied to the clipboard.

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public TextRange[] GetAsRange(
	bool isCopyFormat
)

Parameters

isCopyFormat
Type: System Boolean
Indicates whether to copy the format of the selected text to the clipboard.

Return Value

Type: TextRange
An array of TextRange objects representing the selected text.
See Also