Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Displaying and Scrolling Text


TEStylePaste

The TEStylePaste procedure pastes text and its associated character attribute information from the desk scrap into the edit record's text at the insertion point--if the current selection range is an insertion point--or it replaces the current selection range.

PROCEDURE TEStylePaste (hTE: TEHandle);
hTE
A handle to the edit record into which the text is to be pasted.
DESCRIPTION
When you call TEStylePaste and there is no character attribute information associated with text in the desk scrap, TEStylePaste first checks the null scrap. If the null scrap contains character attribute information, this is used. If the null scrap is empty, TEStylePaste gives the text the same attributes as those of the first character of the replaced selection range or that of the preceding character if the selection is an insertion point.

For a monostyled edit record, TEStylePaste pastes the text only; there is no associated character attribute information because all the text uses the same attributes.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996