Carbon


Text Alignment Constants

Header: TextEdit.h

enum {
    teJustLeft = 0,
    teJustCenter = 1,
    teJustRight = -1,
    teForceLeft = -2,
    teFlushDefault = 0,
    teCenter = 1,
    teFlushRight = -1,
    teFlushLeft = -2
};

Constant descriptions

teJustLeft
teJustCenter
teJustRight
teForceLeft
teFlushDefault

Align according to primary line direction

teCenter

Centered for all scripts

teFlushRight

Right aligned for all scripts

teFlushLeft

Left aligned for all scripts

You can use these constants to specify the text alignment through the align parameter of the TESetAlignment and TETextBox functions. For compatibility, the previous names of these constants (teJustLeft, teJustCenter, teJustRight, and teForceLeft) are still supported.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)