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.v21.1.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.

See Also