Vcl.ComCtrls.TTextAttributes.Protected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Protected: Boolean read GetProtected write SetProtected;

C++

__property bool Protected = {read=GetProtected, write=SetProtected, 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