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

RepositoryItemCollection.Add(String) Method

Creates a new repository item of the specified type and adds it to the end of the collection.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public virtual RepositoryItem Add(
    string editorName
)

Parameters

Name Type Description
editorName String

A string value specifying the repository item type by the corresponding editor type name.

Returns

Type Description
RepositoryItem

A RepositoryItem descendant representing the new repository item.

Remarks

If the editor type name is specified incorrectly, an exception is raised.

To add a number of repository items at once, use the RepositoryItemCollection.AddRange method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also