Vcl.ComCtrls.TTextAttributes.Protected
Delphi
property Protected: Boolean index CFE_PROTECTED read GetStyleElement write SetStyleElement;
C++
__property bool Protected = {read=GetStyleElement, write=SetStyleElement, index=16, nodefault};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTextAttributes |
説明
TTextAttributes オブジェクトの表すテキストが保護されているかどうかを示します。
Protected で保護されたテキストをユーザーが変更することはできません。保護されたテキストを含んだ選択範囲の編集をユーザーが試みると,書式付き編集コントロールは OnProtectChange イベントハンドラを呼び出します。OnProtectChange イベントハンドラは,保護されたテキストの編集を許可したり禁止したりできます。OnProtectChange イベントハンドラがない場合,保護されたテキストは読み出し専用になります。