UserInterfaceObjectCollection<T>.Add(String, String) Method
Creates a new instance of the UserInterfaceObject descendant, sets its UserInterfaceObject.DisplayName and UserInterfaceObject.MenuCaption, and adds the object to the collection.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.1.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
displayName | String | A string that will be used as the display name. |
menuCaption | String | A string that will be used as the menu caption. |
Returns
Type | Description |
---|---|
Int32 | An integer that is the index of a newly created and added object in the collection. |
See Also