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

DiagramShowingOpenImageDialogEventArgs(DiagramControl, String, String, String, Object) Constructor

Initializes a new instance of the DiagramShowingOpenImageDialogEventArgs class with the specified settings.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public DiagramShowingOpenImageDialogEventArgs(
    DiagramControl source,
    string filter,
    string title,
    string initialDirectory,
    object imageSourceToOpen
)

#Parameters

Name Type Description
source DiagramControl

The DiagramControl that raised the event.

filter String

The file filtering options available in the dialog. By default, All pictures (*.jpg;*.jpeg;*.bmp;*.png;*.gif)|*.jpg;*.jpeg;*.bmp;*.png;*.gif|JPEG Fileinterchange Format (*.jpg;*.jpeg)|*.jpg;*.jpeg|Windows Bitmap (*.bmp)|*.bmp|Portable Network Graphics (*.png)|*.png|Graphics Interchange Format (*.gif)|*.gif

title String

A string value that is the title of the dialog.

initialDirectory String

A string value that is the path to the directory displayed by the dialog.

imageSourceToOpen Object

The object from which to automatically load the image. It can be a string value specifying the file full path, a Uri object, a stream or an array of bytes.

#Remarks

Instances of the DiagramShowingOpenImageDialogEventArgs class are automatically created, initialized and passed to the corresponding event handlers.

See Also