Vcl.ComCtrls.TCustomRichEdit.OnSelectionChange

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

Delphi

property OnSelectionChange: TNotifyEvent read FOnSelChange write FOnSelChange;

C++

__property System::Classes::TNotifyEvent OnSelectionChange = {read=FOnSelChange, write=FOnSelChange};

プロパティ

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


説明

現在の選択が変更された際に発生します。

OnSelectionChange イベント ハンドラを記述すると、選択されたテキストへの変更に対応できるようになります。 選択における変更とは、ユーザーがマウスまたはキーボードを使用して選択を変更した場合、または、SelText プロパティを介して選択箇所が変更された場合に発生します。選択の部分は、Lines プロパティを介しても変更できます。

関連項目


コード サンプル