![]() |
TENumStyles |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Returns the number of character attribute changes contained in the specified range, counting one for the start of the range.
SInt32 TENumStyles ( SInt32 rangeStart, SInt32 rangeEnd, TEHandle hTE );
The beginning of the range of text for which the number of style runs (sets of character attributes) or changes is counted and returned.
The end of the range of text for which the number of style runs (sets of character attributes) or changes is counted and returned.
A handle to the edit structure containing the range of text.
The number of character attribute changes contained in the specified range. This 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 structures, TENumStyles always returns 1.
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)