System.Actions.TContainedActionLink.SetShortCut

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

Delphi

procedure SetShortCut(Value: System.Classes.TShortCut); virtual;

C++

virtual void __fastcall SetShortCut(System::Classes::TShortCut Value);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
System.Actions.pas
System.Actions.hpp
System.Actions TContainedActionLink

説明

アクション リンクのクライアントの ShortCut プロパティを設定するためのインターフェイスです。


Value には、ShortCut プロパティの新しい値を指定します。

関連付けられたアクションの ShortCut プロパティが変化すると、アクションは SetShortCut を呼び出します。その結果、アクション リンクは新しい Value をアクション リンクのクライアント オブジェクトの ShortCut プロパティに伝播させることができます。

TContainedActionLink で実装されている SetShortCut は何も処理を行いません。IsShortCutLinked メソッドが True を返した場合にクライアントの ShortCut プロパティを設定するよう、下位クラスで SetShortCut をオーバーライドします。

関連項目