Vcl.JumpList.TCustomJumpList.AddTask
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 のパラメータを使用すると、新しいリスト項目のプロパティを定義することができます:
パラメータ | プロパティ | メモ |
---|---|---|
|
| |
|
||
|
||
|
AddTask は、新しいリスト項目の Visible プロパティを True
にします。 また、新しいリスト項目は、デフォルトでは、セパレータではありません。
AddTask を呼び出した後、AutoRefresh を有効にしていない場合には、ジャンプ リストを更新することを忘れないでください:
Delphi:
JumpLists1.AddTask('MyItem');
JumpLists1.UpdateList;
C++:
JumpLists1->AddTask("MyItem");
JumpLists1->UpdateList();
これが結果です:
関連項目
- Vcl.JumpList.TJumpListItem.FriendlyName
- Vcl.JumpList.TJumpListItem.Path
- Vcl.JumpList.TJumpListItem.Arguments
- Vcl.JumpList.TJumpListItem.Icon