Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppointmentImageInfo.SvgImage Property

Gets or sets an SVG image to be displayed within the appointment.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public SvgImage SvgImage { get; set; }

#Property Value

Type Description
SvgImage

An object that specifies a vector image.

#Remarks

Set the SvgImage and SvgImageSize properties to display an SVG image within an appointment. The SvgImage property specifies the image. The SvgImageSize property specifies the image size.

using DevExpress.XtraScheduler;
using DevExpress.XtraScheduler.Drawing;

private void schedulerControl_InitAppointmentImages(object sender, AppointmentImagesEventArgs e) {
    if(e.Appointment.IsBase)
        e.ImageInfoList.Add(new AppointmentImageInfo() {
            SvgImage = svgImageCollection1[0],
            SvgImageSize = new Size(16, 16) });
}
See Also