[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TTaskDialogButtons.Items

Provides indexed access to buttons defined in the collection.

## Declaration

Source position: dialogs.pp line 686

`public property TTaskDialogButtons.Items[Index: Integer] : TTaskDialogBaseButtonItem read GetItem write SetItem; default;`

## Description

Items is an indexed TTaskDialogBaseButtonItem property with the buttons defined for the collection. It re-implements the property introduced in the ancestor class to use the TTaskDialogBaseButtonItem type when reading or writing values in the collection. Values in the property are accessed by their ordinal position in the collection.

Items is the default property, and the target for an enumerator created for the class instance.

## See also

TTaskDialogBaseButtonItem |  | Defines the base class for a custom button displayed on a Task dialog.
TTaskDialogButtons.GetEnumerator |  | Gets an enumerator for the buttons in the Items property.
TCollection.Items
TCollection.ItemClass