A newer version of this page is available. Switch to the current version.

DiagramControl.CustomLoadImage Event

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

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v19.1.dll


public event EventHandler<DiagramCustomLoadImageEventArgs> CustomLoadImage

Event Data

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


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