[]
        
(Showing Draft Content)

C1.Win.C1Schedule.BeforeAppointmentFormatEventArgs.CustomIcon

CustomIcon Property

CustomIcon

Gets or sets custom icon to show in appointment element.

Declaration
public Image CustomIcon { get; set; }
Remarks

To show this icon, make sure that AppointmentIcons property includes Custom flag.

Examples

The code below shows how to use image from application embedded resources as appointment icon.

void c1Schedule1_BeforeAppointmentFormat(object sender, BeforeAppointmentFormatEventArgs e)
{
e.Icons = AppointmentIcons.Custom;
e.CustomIcon = C1.Win.Schedule.Utils.GetImage(System.Reflection.Assembly.GetExecutingAssembly(), "Flower.jpg");
}