TextEdit Style Modes
Constant Value Description/Sample
doFont 0x01 set/query font number
doFace 0x02 set/query character style (bold, italic, et al.)
doSize 0x04 set/query size
doColor 0x08 set/query RGB color
doAll 0x0F set/query font, style, size, and color
addSize 0x10 increment/decrement font size (TESetStyle only) doToggle 0x20 (with doFace) either set the attribute, or turn it off,
depending upon if it is continuous across the range
( supported starting with system 6.0)
They are bit values and may be used in combination to modify the nature
of your request. These values apply to fields of the TextStyle data structure (which see).
The doToggle variation is designed to be used with the doFace mode on calls to TESetStyle. It automates a standard action of applying or removing a face attribute (italics, bold, etc) across a selection range which contains a
variety of attributes. See TESetStyle for an example.