A keyword specifying the operation to perform.
The value or values to use, when the operation is setting something.
Selects all the text.
Returns as multiple values the bounding indexes of the selection. result is the start (inclusive) and result2 is the end (exclusive). If there is no selection, both values are the index of the insertion point.
Undoes the last editing operation. Note that, after typing, it is the whole input, rather than a single character, that is undone. The
:undo operation may be repeated successively, to undo previous editing operations in turn.
with RichEdit 1.0,
:undo does not work repeatedly - it only undoes one previous editing operation. See rich-text-version
Undoes the effect of the last
:undo operation. The
:redo operation may be repeated successively, to cancel the effect of previous
:undo operations in turn.
with RichEdit 1.0,
:redo does not work. See rich-text-version.
is the value of a boolean modified flag. This flag can be set by the
:set-modified operation. Also, editing the text sets it to true.
Sets the modified flag. The argument is a boolean.
Saves the text to a file. Details below.
Loads the text from a file. Details below.
Returns a value indicating the word wrap, which can be the keyword
can also be the keyword
:window or a CAPI printer object, meaning that the text wraps according to the width of the window or the printer.
Sets the word wrap. The argument can be as described for
:get-word-wrap, and additionally it can be the keyword
:printer, meaning the current-printer.
is true, only the current selection is saved. If
nil, all the text is saved. The default value of
:rtf and there are two further allowed values,
:textized. These are like
:text except in the way they deal with COM objects. See the documentation for SF_RTFNOOBJS and SF_TEXTIZED in the EM_STREAMOUT entry in the MSDN for details. When saving with
is true, then keywords that are not common to all languages are ignored. With other values of
has no effect.
is true, the unselected text is preserved. If there is a selection, the new text replaces it. If there is no selection, the new text is inserted at the current insertion point. If
nil, all the text is replaced. The default value of
nil, meaning that the RTF signature is relied upon to indicate a Rich Text Format file. If
is true, then keywords that are not common to all languages are ignored.
:text (format nil "First paragraph.~%Second paragraph, a little longer.~%Another paragraph, which should be long long enough that it spans more than one line. ~%" ))))
(capi:rich-text-pane-operation rtp :set-selection 9 18)
(capi:rich-text-pane-operation rtp :paste)
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017