Skip to main content

DiagramControl.CustomLoadImage Event

Fires after an end-user selects a file in the ‘Insert Picture’ dialog.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramCustomLoadImageEventArgs> CustomLoadImage

Event Data

The CustomLoadImage event's data class is DevExpress.XtraDiagram.DiagramCustomLoadImageEventArgs.

Remarks

The CustomLoadImage event allows you to implement a custom logic for loading images. The event’s ImageData property represents the image. The ImageSource property is set to null by default and allows you to specify a custom image source. The Item property represents the resulting diagram image item. Set the event’s Handled property to true to disable the default loading mechanism and instead, use the implemented custom logic.

See Also