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.v24.2.dll
Declaration
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.
Related GitHub Examples
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.