Struct TAttr

Unit: WPRTEDefs

Description

@depreciated This record is only defined for better compatibility to WPTools 4 and earlier. It is a record with some (but not all possible) character attributes which can be read from and assigned to the property Attr of the TWPRichText object. The values which used to be 'Byte' value are changed to 'Integer' since the TAttr does not any longer need to be memory optimized.

Note: Records of type 'TWPCharAttr' are now used to store character attributes. Each character in the text has a reference to such a record using the par.CharAttr array. The CharAttr[] values are 3-byte index values to the TWPCharAttr records hosted by RTFProps.Attributes. The top byte is used to encode 8 dynamic flags, such as the marks for misspelled words. To change a CharAttr use the Cursor properties, such as property CurrentCharAttr: and property SelectedTextAttr: see class="TWPSelectedTextAttrInterface">.

Used or referenced by

-Property TWPTAttrEmulator.Attr : TAttr