Description
Selects all the contents of a RichTextEdit control including any special characters such as carriage return and end-of-file (EOF) markers.
Applies to
RichTextEdit and DataWindow controls
Syntax
rtename.SelectTextAll ( { band } )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit or DataWindow control in which you want to select all the contents. The DataWindow object in the DataWindow control must be a RichTextEdit DataWindow. |
band (optional) |
A value of the Band enumerated datatype specifying the band in which you want to select all the text. Values are:
The default is the band that contains the insertion point. |
Return value
Integer.
Returns the number of characters selected. A carriage return with a line feed counts as a single character. If an error occurs, SelectTextAll returns -1.
Examples
This statement selects all the text in the detail band:
rte_1.SelectTextAll()
This statement selects all the text in the header band:
rte_1.SelectTextAll(Header!)
See also