Enum AppointmentFlags
Contents
[
Hide
]AppointmentFlags enumeration
Flags that describe an appointment’s special characteristics.
[Flags]
public enum AppointmentFlags
Values
| Name | Value | Description |
|---|---|---|
| None | 0 | Indicates that no specific flags are set. The appointment has no special characteristics. |
| AllDayEvent | 1 | The appointment is an all-day event. It spans the entire day and is displayed as an all-day item in calendars. |
Remarks
This enumeration supports bitwise combinations of flag values to specify multiple appointment characteristics. Use the Flags property to set or check the flags of an appointment.
Currently, only the AllDayEvent flag is defined, but additional flags may be added in the future.
Examples
[C#]
var appointment = new Appointment("Team Meeting", new DateTime(2026, 10, 31, 9, 0, 0),
new DateTime(2026, 10, 31, 17, 0, 0), organizer, attendees);
// Mark as an all-day event
appointment.Flags = AppointmentFlags.AllDayEvent;
// Check if it's an all-day event
if ((appointment.Flags & AppointmentFlags.AllDayEvent) == AppointmentFlags.AllDayEvent)
{
Console.WriteLine("This is an all-day event");
}
See Also
- namespace Aspose.Email.Calendar
- assembly Aspose.Email