![]() |
TXNGetContinuousTypeAttributes |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Checks to see if the attributes of the current selection are continuous.
OSStatus TXNGetContinuousTypeAttributes ( TXNObject iTxnObject, TXNContinuousFlags *oContinuousFlags, ItemCount ioCount, TXNTypeAttributes ioTypeAttributes[] );
A variable of type TXNObject.Pass the text object that contains the current selection.
A pointer to a variable of type TXNContinousFlags. On return, a
A variable of type ItemCount. On return, this specifies the number of TXNTypeAttributes records in the ioTypeAttributes array.
An array of TXNTypeAttributes structures. The tag values in this array indicate the text attributes in which the application is interested. It can be NULL. If you are using ATSUI and you want to know the ATSUI font ID, the you should set the tag field to kATSUFontTag, which is a constant in ATSUnicode.h. If you are using ATSUI and you set the tag field to a QuickDraw font ID, then the QuickDraw font to which the ATSUI font maps is returned. Note that this is not always the same font since many ATSUI fonts are not supported by QuickDraw.
A result code.
You can use this function to determine whether your application should display checkmarks in the Font, Style, Size, and Color menus. If these are the only attributes in which you are interested, you can use this function on systems that use QuickDraw or Apple Type Services for Unicode Imaging (ATSUI).
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)