FileDialog Methods

Overview | This Package | All Packages

FileDialog Methods

Constructors Description
FileDialog Creates a FileDialog control.

Methods Description
addOnFileOk Assigns a delegate to the fileOk event.

getAddExtension Retrieves a boolean value indicating whether the dialog box automatically adds an extension to a file name when the user omits the extension.

getCheckFileExists Retrieves a boolean value indicating whether the dialog box should display a warning if the user specifies a file name that does not exist.

getCheckPathExists Retrieves a boolean value indicating whether the dialog box should display a warning if the user specifies a path that does not exist.

getDefaultExt Retrieves the default file extension.

getDereferenceLinks Retrieves a boolean value indicating whether the dialog box returns the path and file name of the file referenced by the a shortcut or whether it returns the path and file name of the shortcut (.LNK) file.

getFileName Retrieves the file name of the selected file.

getFileNames Retrieves the file names of all selected files in the dialog box.

getFilter Retrieves the current filter string (the string that determines the choices that appear in the Save as file type or Files of type box in the dialog box and allow the user to filter out the kinds of files that are shown in the dialog box).

getFilterIndex Retrieves a value indicating the one-based index of the filter currently selected in the dialog box.

getInitialDir Retrieves the path for the directory whose contents are initially displayed in the dialog box.

getRestoreDirectory Retrieves a boolean value indicating whether the dialog box restores the current directory before closing.

getShowHelp Retrieves a boolean value indicating whether the dialog box contains a Help button.

getTitle Retrieves the text that appears in the title bar of the dialog box.

getValidateNames Retrieves a boolean value indicating whether the dialog box accepts only valid Win32 file names.

onFileOk Triggers the fileOk event.

promptFileCreate Prompts the user when a file is about to be created.

promptFileNotFound Prompts the user when a file does not exist.

promptFileOverwrite Prompts the user when a file is about to be overwritten.

removeOnFileOk Removes the delegate that is assigned to the fileOk event.

reset Resets all dialog box options to their default values.

setAddExtension Sets a boolean value indicating whether the dialog box automatically adds an extension to a file name when the user omits the extension.

setCheckFileExists Sets a boolean value indicating whether the dialog box should display a warning if the user specifies a file name that does not exist.

setCheckPathExists Sets a boolean value indicating whether the dialog box should display a warning if the user specifies a path that does not exist.

setDefaultExt Sets the default file extension, which is appended to a file name if the user fails to type an extension.

setDereferenceLinks Sets a boolean value indicating whether the dialog box returns the path and file name of the file referenced by the a shortcut or whether it returns the path and file name of the shortcut (.LNK) file.

setFileName Sets a value that indicates which file name is selected by default when the dialog box is opened.

setFilter Sets the current filter string (the string that determines the choices that appear in the Save as file type or Files of type box in the dialog box and allow the user to filter out the kinds of files that are shown in the dialog box).

setFilterIndex Sets a value representing the one-based index of the filter that is selected by default when the dialog box is opened.

setInitialDir Sets the path for the directory whose contents are initially displayed in the dialog box.

setRestoreDirectory Sets a boolean value indicating whether the dialog box restores the current directory before closing.

setShowHelp Sets a boolean value indicating whether the dialog box contains a Help button.

setTitle Sets the text that appears in the title bar of the dialog box.

setValidateNames Sets a boolean value indicating whether the dialog box accepts only valid Win32 file names.