Skip to main content

DiagramShowingSaveDialogEventArgs(DiagramControl, String, String, String, String, Object, Int32) Constructor

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

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public DiagramShowingSaveDialogEventArgs(
    DiagramControl source,
    string filter,
    string title,
    string initialDirectory,
    string defaultFileName,
    object documentSourceToSave,
    int filterIndex
)

Parameters

Name Type Description
source DiagramControl

The DiagramControl that raised the event.

filter String

The file filtering options available in the dialog. By default, Xml files (*.xml)|*.xml|All files (*.*)|*.*

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.

defaultFileName String

A string value that is the default name of the file to which to save the diagram.

documentSourceToSave Object

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

filterIndex Int32

An integer value that specifies the index of the filter that is selected in the file dialog box by default.

Remarks

If the documentSourceToSave parameter is set, a diagram will be automatically saved to the specified source; the default dialog will not be invoked.

See Also