OpenFilePicker class

A picker that allows the user to select a file from the file system.

Inheritance

Constructors

OpenFilePicker()

Properties

addToRecentDocuments bool
Whether to add the item being opened or saved to the recent documents list.
getter/setter pairinherited
alwaysShowInitialDirectory bool
Whether the dialog box should always display the directory defined in in initialDirectory to the user, regardless of previous user interaction.
getter/setter pair
customPlaces List<CustomPlace>
A list of custom places.
finalinherited
defaultExtension String?
The default extension to be added to file names.
getter/setter pairinherited
defaultFilterIndex int?
Which entry in the filterSpecification is shown by default. Typically this is the first entry shown.
getter/setter pairinherited
Whether shortcuts should be treated as their target items.
getter/setter pairinherited
fileMustExist bool
The item returned must exist.
getter/setter pairinherited
fileName String
The file name that appears in the File name edit box when that dialog box is opened.
getter/setter pairinherited
fileNameLabel String
The text of the label next to the file name edit box.
getter/setter pairinherited
filterSpecification Map<String, String>
The filter for the file types shown.
getter/setter pairinherited
forceFileSystemItems bool
Ensure that returned items are file system items.
getter/setter pairinherited
forcePreviewPaneOn bool?
Indicates to the Open dialog box that the preview pane should always be displayed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hidePinnedPlaces bool
Hide all of the standard namespace locations (such as Favorites, Libraries, Computer, and Network) shown in the navigation pane.
getter/setter pairinherited
hWndOwner int
HWND of dialog.
getter/setter pairinherited
initialDirectory String?
The directory that the dialog box initially displays when opened.
getter/setter pair
isDirectoryFixed bool
Don't change the current working directory.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showHiddenAndSystemItems bool
Include hidden and system items.
getter/setter pairinherited
title String
The title of the dialog.
getter/setter pairinherited

Methods

addPlace(WindowsKnownFolder folder, Place location) → void
Add a known folder to the Quick Access list.
inherited
getFile() File?
Returns a File object from the selected file.
getFiles() List<File>
Returns a list of File objects from the selected files.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited