Vcl.JumpList.TCustomJumpList.AddItemToCategory
Delphi
function AddItemToCategory(CategoryIndex: Integer; const FriendlyName: string; const Path: string = ''; const Arguments: string = ''; const Icon: string = ''): TJumpListItem;
C++
TJumpListItem* __fastcall AddItemToCategory(int CategoryIndex, 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 |
説明
リスト項目を、指定されたインデックスのカテゴリへ追加し、その新たなリスト項目を返します。
AddItemToCategory は、リスト項目を実行時にカテゴリに追加します。カテゴリの Items プロパティを使用すると、設計時にリスト項目を定義することができます。
CategoryIndex
は、ターゲット カテゴリのインデックスです。残りのパラメータを使用すると、新しいリスト項目のプロパティを定義することができます:
パラメータ | プロパティ | メモ |
---|---|---|
|
| |
|
||
|
||
|
AddItemToCategory は、新しいリスト項目の Visible プロパティを True
にします。また、新しいリスト項目は、デフォルトでは、セパレータではありません。
AddItemToCategory を呼び出した後、AutoRefresh を有効にしていない場合には、ジャンプ リストを更新することを忘れないでください:
Delphi:
JumpLists1.AddItemToCategory(CategoryIndex, 'MyItem');
JumpLists1.UpdateList;
C++:
JumpLists1->AddItemToCategory(CategoryIndex, "MyItem");
JumpLists1->UpdateList();
これが結果です:
関連項目
- Vcl.JumpList.TJumpListItem.FriendlyName
- Vcl.JumpList.TJumpListItem.Path
- Vcl.JumpList.TJumpListItem.Arguments
- Vcl.JumpList.TJumpListItem.Icon
- Vcl.JumpList.TCustomJumpList.AddCategory
- Vcl.JumpList.TCustomJumpList.AutoRefresh
- Vcl.JumpList.TCustomJumpList.UpdateList