![]() |
TEStyleInsert |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Inserts the specified text immediately before the selection range or the insertion point in the edit structures text and applies the specified character attributes to the text, redrawing the text if necessary.
void TEStyleInsert ( const void *text, SInt32 length, StScrpHandle hST, TEHandle hTE );
A pointer to the text to be inserted.
The length, in bytes, of the text to be inserted.
A handle to the style scrap structure containing the character attribute information to be applied to the inserted text.
A handle to the edit structure into which the text is to be inserted.
You should create your own style scrap structure, specifying the character attributes to be inserted and applied to the text, and pass its handle to TEStyleInsert as the value of the hST parameter. The character attributes are copied directly into the style structures (TEStyleRec) style table.
The TEStyleInsert function does not affect the current selection range.
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)