Skip to main content

TcxCustomRichEditProperties.OnProtectChange Event

Occurs when a user attempts to modify text that is marked as protected.

Declaration

property OnProtectChange: TRichEditProtectChange read; write;

Remarks

Handle the OnProtectChange event to allow text with the protected attribute to be modified. The StartPos and EndPos parameters indicate the beginning and end of the range of text that will be affected by the modification, where 0 is the first character in the text. To allow protected text to be modified, set the AllowChange parameter to True.

To set or unset the protected attribute for a section of text, select the text and use the Protected property of the rich edit control’s SelAttributes property. To cause text to have the protected attribute by default, use the Protected property of the rich edit object’s DefAttributes property.

See Also