| 
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
Syntax
 
 
public TextRange[] GetAsRange(
	bool isCopyFormat
)
 
Public Function GetAsRange ( 
	isCopyFormat As Boolean
) As TextRange()
 
public:
array<TextRange^>^ GetAsRange(
	bool isCopyFormat
)
 
member GetAsRange : 
isCopyFormat : bool -> TextRange[] 
 
 
 
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
See Also