# Predefined Labels

## Content

[C1Schedule](/componentone/api/win/online-schedule/dotnet-api/C1.Win.Schedule.10/C1.Win.Schedule.C1Schedule.html) provides 12 predefined labels that can be assigned to appointments. The label color appears in every data view of the `C1Schedule` control.
The following image shows appointments with labels in Month view.
![C1WinForms Scheduler predefined labels usage example](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/image-20260630.32d1d3.png?verticalAlign=baseline)

## Predefined Labels

The predefined labels include the following:

| Label | Color | Index |
| ----- | ----- | ----- |
| None | ![None](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_5.png) | 0 |
| Important | ![Important](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_6.png) | 1 |
| Business | ![Business](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_7.png) | 2 |
| Personal | ![Personal](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_8.png) | 3 |
| Vacation | ![Vacation](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_9.png) | 4 |
| Deadline | ![Deadline](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_10.png) | 5 |
| Must Attend | ![Must Attend](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_11.png) | 6 |
| Travel Required | ![Travel Required](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_12.png) | 7 |
| Needs Preparation | ![Needs Preparation](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_13.png) | 8 |
| Birthday | ![Birthday](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_14.png) | 9 |
| Anniversary | ![Anniversary](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_15.png) | 10 |
| Phone Call | ![Phone Call](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/imagesext/image10_16.png) | 11 |

***

## Assigning Predefined Labels to an Appointment

Assign labels in code or at run time through the **Appointment** dialog box.
The following code in the **Form\_Load** event assigns the **Must Attend** label to an appointment:

```auto
// Add a new appointment.   
C1.C1Schedule.Appointment app;
app = this.c1Schedule1.DataStorage.AppointmentStorage.Appointments.Add();
// Set some details for the appointment.    
app.Subject = "Meeting";
app.Location = "Large Conference Room";
app.Duration = TimeSpan.FromMinutes(45);
app.Start = new DateTime(2021, 11, 01, 13, 30, 0);
// Assign a predefined label to the appointment.         
app.Label = this.c1Schedule1.DataStorage.LabelStorage.Labels[6];
```

At run time, open the **Label** drop-down list in the **Appointment** dialog box and select one of the available labels.
The following image shows the **Must Attend** label selected.
![image](https://cdn.mescius.io/document-site-files/images/675b9aff-7616-4324-81ac-58e410fb9531/image-20260630.2af234.png?caption=C1WinForms%20Scheduler%20appointment%20dialog%20box%20label%20option)

***

## Assigning Custom Labels to an Appointment

Assign a custom label by using the `Label` property. A custom label can specify a color, name, and identifying text.

```auto
// Create a new appointment.   
C1.C1Schedule.Appointment app1 = this.c1Schedule1.DataStorage.AppointmentStorage.Appointments.Add();
// Make the appointment an all day event.   
app1.Start = new DateTime(2021, 11, 02, 13, 30, 0);
app1.AllDayEvent = true;
// Set some details for the appointment.   
app1.Subject = "Training";
app1.Location = "Large Conference Room";
// Assign a custom label to the appointment.       
app1.Label = new C1.C1Schedule.Label(Color.DeepSkyBlue, "Meeting", "Meeting");
```