Important: The information in this document is obsolete and should not be used for new development.
TENumStyles
TheTENumStyles
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 thatTENumStyles
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.