Vcl.ComCtrls.TTextAttributes.Protected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Protected: Boolean index CFE_PROTECTED read GetStyleElement write SetStyleElement;

C++

__property bool Protected = {read=GetStyleElement, write=SetStyleElement, index=16, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTextAttributes

Description

Indicates whether the text represented by the TTextAttributes object is protected.

Protected text can't be changed by the user. When the user attempts to edit a selection that includes protected text, the rich edit control calls the OnProtectChange event handler. The OnProtectChange event handler can then permit or disallow the editing of the protected text. If there is no OnProtectChange event handler, protected text is read-only.

See Also