SetStylHandle
TEStyleHandle hStyle ; handle leading to a TEStyleRec TEHandle hTE ; handle leading to edit record to modify edit record. The new style description will be used when the edit record is
redrawn.
hStyle is a handle leading to a variable-length TEStyleRec structure. It contains information for use in formatting the text in the
edit record.
hTE is a handle leading to an edit record created via TENew or
Notes: SetStyleHandle has no effect when used on an old-format
edit record. Use this function instead of manipulating the format-related
You might use this as part of a sequence to duplicate an edit record and its
style formatting information; however, TECopy and TEPaste are designed for this purpose.
Note that this does not affect the lineHeight and fontAscent fields of the
edit record which control the automatic/fixed lines-spacing options.