Skip to main content
All docs
V24.1

AppointmentImageInfo.SvgImageSize Property

Gets or sets the SVG image size.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public Size? SvgImageSize { get; set; }

Property Value

Type Description
Nullable<Size>

The SVG image size.

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