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


public int Add(
    string displayName,
    string menuCaption


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.


Type Description

An integer that is the index of a newly created and added object in the collection.

See Also