Important: The information in this document is obsolete and should not be used for new development.
TEGetStyleHandle
TheTEGetStyleHandle
function returns the style handle stored in the designated
edit record'stxFont
andtxFace
fields. The style handle points to the associated
style record.
FUNCTION TEGetStyleHandle (hTE: TEHandle): TEStyleHandle;
hTE
- A handle to the multistyled edit record containing the style handle to
be returned.DESCRIPTION
TheTEGetStyleHandle
function returns a handle to the style record (of typeTEStyleRec
), not a copy of it. Because only multistyled edit records have style records,TEGetStyleHandle
returnsNIL
when used with a monostyled edit record. To ensure future compatibility, your application should always use this function rather than manipulate the fields of the edit record directly.