Back to Devexpress

AppointmentStatusCollection.CreateNewStatus(Object, String, String) Method

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentstatuscollection-dot-createnewstatus-x28-system-dot-object-system-dot-string-system-dot-string-x29.md

latest2.3 KB
Original Source

AppointmentStatusCollection.CreateNewStatus(Object, String, String) Method

Creates a status with the specified identifier, display name and menu caption.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public AppointmentStatus CreateNewStatus(
    object id,
    string displayName,
    string menuCaption
)
vb
Public Function CreateNewStatus(
    id As Object,
    displayName As String,
    menuCaption As String
) As AppointmentStatus

Parameters

NameTypeDescription
idObject

An object that is the unique status identifier.

| | displayName | String |

A string that is the name of the status used in editors.

| | menuCaption | String |

A string that is the caption of a context menu used to change a status for an appointment.

|

Returns

TypeDescription
AppointmentStatus

A AppointmentStatus object that is the newly created status.

|

Remarks

The AppointmentStatus.Brush property is set to the SolidBrush object of Color.White.

See Also

AppointmentStatusCollection Class

AppointmentStatusCollection Members

DevExpress.XtraScheduler Namespace