AppointmentStatusCollection.Add(Object, AppointmentStatusType, String, String, Brush) Method
Creates a new status with the specified settings and adds it to the collection of appointment statuses.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
#Declaration
public int Add(
object id,
AppointmentStatusType type,
string displayName,
string menuCaption,
Brush brush
)
#Parameters
Name | Type | Description |
---|---|---|
id | Object | An object that is the unique status identifier. |
type | Appointment |
An Appointment |
display |
String | A string that is the name of the status used in editors. |
menu |
String | A string used in a context menu that allows changing the status of an appointment. |
brush | Brush | A Brush structure that specifies the color brush used to paint a status strip. |
#Returns
Type | Description |
---|---|
Int32 | An integer value indicating the position of the newly added status in the collection. |
#Remarks
Important
You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.
Use the Add method to add custom appointment statuses.