![]() |
Text Offset and Length Constants |
Header: ATSUnicode.h |
enum { kATSUFromTextBeginning = -1, kATSUToTextEnd = -1 };
Indicates that the range of text to be operated on should start at the beginning of the text layout objects text buffer.
Indicates that the range of text to be operated on should span to the end of the text layout objects text buffer.
ATSUI functions that draw, highlight, measure, or otherwise operate on text do so to a range of text, not the entire text buffer (unless you specify the entire buffer - see next paragraph). You specify the beginning of this range with an edge offset of type UniCharArrayOffset, and demarcate the end of the range by indicating a length of type UniCharCount.
If you want the range to start at the beginning of the text buffer, you should pass the constant kATSUFromTextBeginning. If you want the range to span the end of the text buffer, you should pass the constant kATSUToTextEnd.. If you want the range to span the entire text buffer, pass kATSUFromTextBeginningin conjunction with the constant kATSUToTextEnd.
Available beginning with ATSUI 1.0.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)