![]() |
TESetAlignment |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Sets the alignment of the specified text in an edit structure so that it is centered, right aligned, or left aligned, or aligned according to the line direction.
void TESetAlignment ( SInt16 just, TEHandle hTE );
The alignment for the specified text.The default value of the just field of the edit structure is teFlushDefault. This means that text alignment is based on the primary line direction which is set by default according to the system script.
For a description of the values you can use in this parameter, see
A handle to the edit structure containing the text.
For languages that are read from right to left, text is right aligned by default. For languages that are read from left to right, text is left aligned by default. If you change the alignment, call the Window Manager function InvalRect after TESetAlignment to redraw the text with the new alignment.
TextEdit does not support justified alignment. To draw justified text, use the QuickDraw Text functions.
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)