Vcl.JumpList.TCustomJumpList.OnItemDeleted
Delphi
property OnItemDeleted: TItemDeletedByUserEvent read FOnItemDeleted write FOnItemDeleted;
C++
__property TItemDeletedByUserEvent OnItemDeleted = {read=FOnItemDeleted, write=FOnItemDeleted};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | public | Vcl.JumpList.pas Vcl.JumpList.hpp |
Vcl.JumpList | TCustomJumpList |
Description
May occur during a call to UpdateList or DeleteList, and provides information about a jump list item of your application that your user removed manually. It occurs once per removed item.
The event only occurs for items that are defined in your jump list component at the time of running UpdateList or DeleteList. Handle this event and consider removing the items that your user removed from your jump list component. If you define the content of your jump list at run time, make sure that you define all your items before you call UpdateList or DeleteList. Otherwise, OnItemDeleted does not occur for those items that you define at run time.
The event handler of OnItemDeleted receives the following parameters:
Senderis your jump list component.Itemis the jump list item that your user removed.CategoryNameis the name of the custom category of the item.FromTasksisTrueif the jump list item is a task, orFalseif it is a custom category item.