![]() |
TECopy |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Copies the text selection range from the edit structure, leaving the selection range intact.
void TECopy ( TEHandle hTE );
A handle to the edit structure containing the text to be copied.
The TECopy function copies the text to the private scrap. For text of a monostyled edit structure, the text is written to the private scrap only. For text of a multistyled edit structure, the text is written to the TextEdit private scrap, the character attribute information is written to the TextEdit style scrap, and both are written to the Scrap Managers desk scrap. Anything previously in the private scrap is deleted before the copied text is written to it.
For both multistyled and monostyled text, if the selection range is an insertion point, TECopy empties the TextEdit private scrap. When the selection range is an insertion point and the text is multistyled, TECopy has no effect on the null scrap, the style scrap, or the Scrap Managers desk scrap.
Not recommended in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)