Skip to main content
A newer version of this page is available. .

JumpListItemTask.IconIndex Property

Gets or sets the index of an icon contained in the image source specified by the JumpListItemTask.IconPath property or in the resources of the TaskbarAssistant.IconsAssembly assembly.

Namespace: DevExpress.Utils.Taskbar

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[DefaultValue(-1)]
[ImageList("Collection")]
[DXCategory("Appearance")]
public int IconIndex { get; set; }

Property Value

Type Default Description
Int32 -1

The index of an icon that is contained in the assembly resources.

Remarks

The IconIndex property allows you to assign an icon to a task from the image source specified by the JumpListItemTask.IconPath property. If this image source is not specified, the icon is retrieved from the TaskbarAssistant.IconsAssembly assembly’s resources.

The IconIndex property refers to an icon from the resources by its index. See the TaskbarAssistant.IconsAssembly, to learn more.

The default value is set to -1. In this case, if the path to a command or executable file is assigned to the JumpListItemTask.Path property, an icon of this file is used as the task icon.

See Also