NativeFileSO

Keiwando.NFSO.NativeFileSOMacWin

instance method

OpenFilesSync

public OpenedFile[] OpenFilesSync (SupportedFileType[] fileTypes, bool canSelectMultiple, string title, string directory) 

Summary

Presents a native dialog to the user which allows them to select multiple files to be opened and loads the selected files into instances of the OpenedFile class.

Parameters

fileTypes

The file types used to filter the available files shown to the user.

canSelectMultiple

Determines whether multiple files can be selected and loaded at once.

title

The title of the dialog. Note: The title is not shown on macOS 10.11 and above.

directory

The default directory in which file navigation should start. If this value is empty, the panel will remember the last visited directory.

Returns

The array of loaded files managed by OpenedFile instances.

Remarks

On macOS, this will present a floating panel.