Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.8 Assembly / C1.Win.C1Schedule Namespace / BeforeAppointmentFormatEventArgs Class / CustomIcon Property
Example

In This Topic
    CustomIcon Property (BeforeAppointmentFormatEventArgs)
    In This Topic
    Gets or sets custom icon to show in appointment element.
    Syntax
    'Declaration
     
    Public Property CustomIcon As System.Drawing.Image
    public System.Drawing.Image CustomIcon {get; set;}
    Remarks
    To show this icon, make sure that AppointmentIcons property includes AppointmentIcons.Custom flag.
    Example
    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");
    }
    See Also