Vcl.ComCtrls.TCustomRichEdit.OnProtectChange

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property OnProtectChange: TRichEditProtectChange read FOnProtectChange  write FOnProtectChange;

C++

__property TRichEditProtectChange OnProtectChange = {read=FOnProtectChange, write=FOnProtectChange};

プロパティ

種類 可視性 ソース ユニット
event protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomRichEdit


説明

protected とマークされたテキストをユーザーが変更しようとした際に発生します。

OnProtectChange イベント ハンドラを記述すると、protected 属性のテキストの変更が可能になります。StartPos および EndPos パラメータは、変更の影響を受けるテキストの範囲の最初と最後を示します。このとき、0 はテキストの最初の文字です。protected テキストを変更可能にするには、AllowChange を True に設定します。

テキストのセクションに対して protected 属性を設定または設定解除するには、テキストを選択し、リッチ編集コントロールの SelAttributes プロパティの Protected プロパティを使用します。デフォルトでテキストが protected 属性を持つようにするには、リッチ編集オブジェクトの DefAttributes プロパティの Protected プロパティを使用します。

関連項目