API:Vcl.WinXCtrls.TCustomToggleSwitch.GetActionLinkClass

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

Delphi

function GetActionLinkClass: TControlActionLinkClass; override;

C++

DYNAMIC Vcl::Controls::TControlActionLinkClass __fastcall GetActionLinkClass();

プロパティ

種類 可視性 ソース ユニット
function protected
Vcl.WinXCtrls.pas
Vcl.WinXCtrls.hpp
Vcl.WinXCtrls TCustomToggleSwitch

説明

関連付けられたアクションリンククラスを返します。

Vcl.WinXCtrls.TCustomToggleSwitch.GetActionLinkClass は Vcl.Controls.TWinControl.GetActionLinkClass を継承しています。以下の内容はすべて Vcl.Controls.TWinControl.GetActionLinkClass を参照しています。

関連付けられたアクションリンククラスを返します。

GetActionLinkClass メソッドは,コントロールで使用するアクションリンクの適切なクラス型を返します。このクラスを内部的に使用すると,関連付けられたアクションを保持するコントロールに対してアクションリンクオブジェクトを作成できます。アクションリンクは,アクションをコントロールクライアントにリンクします。各 Action リンククラスは,クライアントがサポートするプロパティの型に基づいて,特定のプロパティとアクションのイベントハンドラとをリンクするように設計されています。

TWinControl で実装されている GetActionLinkClass は,TWinControlActionLink クラス型を返します。これは HelpContextShowHintCaptionEnabled,および Visible プロパティと OnClick イベントハンドラを関連付けます。TWinControl の下位オブジェクトはこのメソッドをオーバーライドして,プロパティおよびイベントの設定を処理する TControlActionLink の下位オブジェクトを指定できます。

関連項目