Important: The information in this document is obsolete and should not be used for new development.
TEPaste
TheTEPaste
procedure replaces the edit record's selected text with the contents of the private scrap and leaves an insertion point after the inserted text. If the selection range is an insertion point,TEPaste
inserts the contents of the private scrap there.
PROCEDURE TEPaste (hTE: TEHandle);
hTE
- A handle to the edit record into which the text is to be pasted.
DESCRIPTION
When you callTEPaste
, after it pastes the text from the private scrap, it redraws all of the text as necessary. If the private scrap is empty,TEPaste
deletes the selection range. If you callTEPaste
for a multistyled edit record, it pastes only the text in the private scrap. In this case,TEPaste
ignores any associated character attribute information stored in the style scrap; instead, it applies the character attributes of the first character of the selection range being replaced to the text. If the selection range is an insertion point,TEPaste
applies the character attributes of the character preceding
the insertion point.