Procedure TWPCustomRtfEdit.GetCharAttr(Lock:TThreeState)

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Description

When you modify the cursor position in code (CPMoveNext) you can use this procedure to update the current writing attribute.
If you pass Lock as tsTrue, the value will be read and kept until the function is called with tsFalse. Then the lock will be disabled but the attribute will not be actualized.
Using GetCharAttr(tsTrue) can be useful to preserve the attribute before ? calling LoadFromFile.