IBreadcrumbItems.Add

Syntax

Add: IBreadcrumbItem;

Description

The Add method adds a new element of the Breadcrumb component.

Example

Executing the example requires a form, a button named Button1 on it and the Breadcrumb component named Breadcrumb1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

i: Integer;

Items: IBreadcrumbItems;

Item: IBreadcrumbItem;

Begin

Items := Breadcrumb1.Items;

Breadcrumb1.BeginUpdate;

For i := 0 To 10 Do

Item := Items.Add;

Item.Text := "Element " + i.ToString;

End For;

Breadcrumb1.EndUpdate;

End Sub Button1OnClick;

After executing the example pressing the button adds ten elements to the collection of elements of the Breadcrumb1 component.

See also:

IBreadcrumbItems