Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomRichEditProperties.OnProtectChange Event

In This Article

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

#Declaration

Delphi
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