UserInterfaceObjectCollection<T>.Add(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.v20.1.Core.dll

Declaration

public int Add(
    string displayName
)
Public Function Add(
    displayName As String
) As Integer

Parameters

Name Type Description
displayName String

A string that will be used as the display name and menu caption.

Returns

Type Description
Int32

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

Implements

DevExpress.XtraScheduler.IStorageCollection<T>.Add(String)
See Also