windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-122f5672.md
Fires after an end-user selects a file in the ‘Insert Picture’ dialog.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramCustomLoadImageEventArgs> CustomLoadImage
<DiagramCategory(DiagramCategory.DiagramItems)>
Public Event CustomLoadImage As EventHandler(Of DiagramCustomLoadImageEventArgs)
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