FileDialogOptions Class

Definition

Represents options for file dialogs, extending the base file dialog options with additional properties.

public class FileDialogOptions : Microsoft.VisualStudio.Extensibility.Shell.FileDialog.FileDialogOptionsBase, IEquatable<Microsoft.VisualStudio.Extensibility.Shell.FileDialog.FileDialogOptions>
type FileDialogOptions = class
    inherit FileDialogOptionsBase
    interface IEquatable<FileDialogOptions>
Public Class FileDialogOptions
Inherits FileDialogOptionsBase
Implements IEquatable(Of FileDialogOptions)
Inheritance
FileDialogOptions
Implements

Constructors

FileDialogOptions()
FileDialogOptions(FileDialogOptions)

Properties

EqualityContract
Filters

Gets the dialog filters for the file dialog.

InitialDirectory

Gets or initializes the initial directory the dialog should have open. This should be an absolute path. If this is an empty string, the initial directory will default to the last opened directory, but if this is the first time, it is the root folder. If this is set, we pass in a flag to the dialog to open to the specified directory instead of the last opened directory. If an invalid directory is passed, we use the default.

(Inherited from FileDialogOptionsBase)
InitialFileName

Gets the initial file name for the input box of the dialog. Leave empty to use the default. This should be just the name of the file, not a path. If an invalid filename is passed, we use the default.

Title

Gets or initializes the title of the file dialog. Leave empty to use the default title.

(Inherited from FileDialogOptionsBase)

Methods

<Clone>$()
Equals(FileDialogOptions)
Equals(FileDialogOptionsBase)
Equals(Object)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Equality(FileDialogOptions, FileDialogOptions)
Inequality(FileDialogOptions, FileDialogOptions)

Applies to