Chapter 2 -- 103
Reference Guide
"
""
" TextSelection.Value
Retrieves or sets value of the selected text if any.
Access Read/Write.
Type VT_BSTR or String
.
"
""
" TextSelection.Copy
VTS_NONE Copy().
Copies the selected text, if any, to the clipboard.
"
""
" TextSelection.Cut
VTS_NONE Cut().
Cuts the selected text, if any, and copies it to the clipboard.
"
""
" TextSelection.Past e
VTS_NONE Paste().
Pastes the text from clipboard into the current selected text.
"
""
" TextSelection.Select
VTS_NONE Select( longFirstPosition, longLastPosition).
Selects the text from longFirstPosition to longLastPosition.
Parameters:
longFirstPosition OptionalVT_I4orLong
.Indexofthefirst
position of the text to select (starts with 1).
longLastPosition OptionalVT_I4orLong
.Indexofthelast
position of the text to select.
Note
If longLastPosition is omitted the text selection starts with
longFirstPosition and ends with the end of the text.
If longFirstPosition and longLastPosition are omitted, all the
text is selected.
Object
Methods