rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.PasteText, PasteTextW

Top  Previous  Next

These methods Insert text from the Clipboard in the position of caret

procedure PasteText;

procedure PasteTextA;

procedure PasteTextW;

PasteTextA pastes text in CF_TEXT format. PasteText and PasteTextW paste text in CF_UNICODETEXT.

In modern versions of Windows, Windows automatically converts Unicode and ANSI text in the Clipboard to each other, using the language of the keyboard layout that was used at the moment of copying, so using PasteTextA does not make sense.

These methods do nothing if the Clipboard does not contain text.

Text is inserted in the position of caret, using the current text and paragraph styles.

Text from the Clipboard may contain special characters: CR, LF, TAB, FF (#13, #10, #9, #12). #9 characters may be inserted as tabulators, depending on value of SpacesInTab property of the linked RVStyle component. #12 characters add page breaks. All possible line breaks modes (CR, LF, CR+LF, LF+CR) are supported. PasteTextW supports the Unicode byte order marks characters (if it's present, it must be the first character).

Methods type: editstyle editing-style method for insertion.

unicode Unicode note:

PasteTextA: itext from the Clipboard will be converted to Unicode.

See also methods:

Paste;

InsertText, -A, -W.

See also properties:

CurParaStyleNo;

CurTextStyleNo.

See also properties of TRVStyle:

TextStyles;

ParaStyles;

SpacesInTab.

See also:

RichView and Clipboard.


TRichView © trichview.com