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

Declaration

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

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.

Implements

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