ResourceCollection.Add(Object, String) Method
Creates resource with the specified ID and caption and adds it to the collection.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v25.1.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| id | Object | An object that is the resource identifier. |
| caption | String | A string that will be used as a resource Resource.Caption. |
Returns
| Type | Description |
|---|---|
| Int32 | An integer that is the index of a newly added resource in the collection. |
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(Object, 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.