Label Property
Description
Gets/sets the event Label. This determines the background color of the event.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Label() As Long
Remarks
The Label of an event determines the background color of the event.
The table below lists all the default label values and colors that are added to the LabelList:
| Default Background Color | Default Name | Default LabelID |
|---|---|---|
| RGB(255,255,255) | None | 0 |
| RGB(255,148,132) | Important | 1 |
| RGB(132,156,231) | Business | 2 |
| RGB(165,222, 99) | Personal | 3 |
| RGB(231,231,214) | Vacation | 4 |
| RGB(255,181,115) | Must Attend | 5 |
| RGB(132,239,247) | Travel Required | 6 |
| RGB(214,206,132) | Needs Preparation | 7 |
| RGB(198,165,247) | Birthday | 8 |
| RGB(165,206,198) | Anniversary | 9 |
| RGB(255,231,115) | Phone Call | 10 |
Calling the InitDefaultValues method will populate the LabelList collection with the values in the table above.
You can Add or Remove labels to the LabelList to be used for events. This allows you to set a custom color for the label.
See Also
- CalendarEvent Object
- LabelList Method
- CalendarEventLabel Object
- LabelID Property
- Color Property
- RemoveAll Method
- AddLabel Method
- InitDefaultValues Method
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.