Vcl.JumpList.TCustomJumpList.AddTask

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

Delphi

function AddTask(const FriendlyName: string; const Path: string = ''; const Arguments: string = '';
const Icon: string = ''): TJumpListItem;

C++

TJumpListItem* __fastcall AddTask(const System::UnicodeString FriendlyName, const System::UnicodeString Path = System::UnicodeString(), const System::UnicodeString Arguments = System::UnicodeString(), const System::UnicodeString Icon = System::UnicodeString());

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.JumpList.pas
Vcl.JumpList.hpp
Vcl.JumpList TCustomJumpList


説明

リスト項目を組み込み "タスク" カテゴリへ追加し、その新しいリスト項目を返します。


AddTask により、リスト項目を組み込み "タスク" カテゴリに、実行時に追加することができます。ジャンプ リスト オブジェクトの TasksList プロパティを使用すると、設計時にリスト項目を定義することができます。

AddTask のパラメータを使用すると、新しいリスト項目のプロパティを定義することができます:

パラメータ プロパティ メモ

FriendlyName

FriendlyName

  • 空文字列にすることはできない

Path

Path

Arguments

Arguments

Icon

Icon


AddTask は、新しいリスト項目の Visible プロパティを True にします。 また、新しいリスト項目は、デフォルトでは、セパレータではありません。

AddTask を呼び出した後、AutoRefresh を有効にしていない場合には、ジャンプ リストを更新することを忘れないでください:


Delphi:

JumpLists1.AddTask('MyItem');
JumpLists1.UpdateList;

C++:

JumpLists1->AddTask("MyItem");
JumpLists1->UpdateList();

これが結果です:

JumpListsTaskListMyItem.png

関連項目