RepositoryItemCollection.Add(RepositoryItem) Method

Adds the specified repository item to the end of the collection.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.1.dll

Declaration

public virtual int Add(
    RepositoryItem item
)

Parameters

Name Type Description
item RepositoryItem

A RepositoryItem descendant to be added to the collection.

Returns

Type Description
Int32

An integer value representing the added item’s zero-based index within the collection.

Remarks

The method returns -1 if the item specified by the parameter is null (Nothing in Visual Basic).

To add several repository items at once, see the RepositoryItemCollection.AddRange method.

See Also