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 / Setting and Getting an Edit Record's Text and Character Attribute Information


TEGetStyleHandle

The TEGetStyleHandle function returns the style handle stored in the designated
edit record's txFont and txFace fields. The style handle points to the associated
style record.

FUNCTION TEGetStyleHandle (hTE: TEHandle): TEStyleHandle;
hTE
A handle to the multistyled edit record containing the style handle to
be returned.
DESCRIPTION
The TEGetStyleHandle function returns a handle to the style record (of type TEStyleRec), not a copy of it. Because only multistyled edit records have style records, TEGetStyleHandle returns NIL when used with a monostyled edit record. To ensure future compatibility, your application should always use this function rather than manipulate the fields of the edit record directly.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996