Vcl.ShareContract.TCustomSharingContract.OnAppChosen

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

Delphi

property OnAppChosen: TApplicationChosenEvent read GetOnAppChosen write SetOnAppChosen;

C++

__property System::Win::Sharecontract::TApplicationChosenEvent OnAppChosen = {read=GetOnAppChosen, write=SetOnAppChosen};

プロパティ

種類 可視性 ソース ユニット
event public
Vcl.ShareContract.pas
Vcl.ShareContract.hpp
Vcl.ShareContract TCustomSharingContract


説明

共有情報を受け取るアプリケーションをユーザーが選択すると発生します。

このイベント ハンドラから取得することができるプロパティは 1 つしかありません。ユーザーが選択したアプリケーションの名前です。

その取得方法を以下のコードに示します。

Delphi の場合:
procedure TForm1.ShareContractComponentAppChosen(const Sender: TObject; const AManager: IDataTransferManager;
  const Args: ITargetApplicationChosenEventArgs);
begin
  Memo1.Lines.Add('Target application name: ' + args.ApplicationName.ToString);
end;
C++ の場合:
void __fastcall TForm1::SharingContractAppChosen(TObject * const Sender, IDataTransferManager * const AManager,
		  ITargetApplicationChosenEventArgs * const Args)
{
  Memo1->Lines->Add("Target application name: " + TWindowsString::HStringToString(Args->ApplicationName));
}

関連項目