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 / Checking, Setting, and Replacing Styles


TENumStyles

The TENumStyles function returns the number of character attribute changes contained in the specified range, counting one for the start of the range.

FUNCTION TENumStyles (rangeStart: LongInt; rangeEnd: LongInt;
                      hTE: TEHandle): LongInt;
rangeStart
The beginning of the range of text for which the number of style runs (sets of character attributes) or changes is counted and returned.
rangeEnd
The end of the range of text for which the number of style runs (sets of character attributes) or changes is counted and returned.
hTE
A handle to the edit record containing the range of text.
DESCRIPTION
The number of character attribute changes that TENumStyles returns does not necessarily represent the number of unique sets of attributes for the range because some sets of attributes may be repeated. For monostyled edit records, TENumStyles always returns 1.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996