FileDialog Methods

Cancel

Cancels the file dialog.

Syntax:

public void Cancel()

Open

Opens the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.

Syntax:

public bool Open()

Return Value:

True if the open was successful, false if a warning was shown.

Save

Saves to the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.

Syntax:

public bool Save()

Return Value:

True if the save was successful, false if a warning was shown.

SetFileName

Sets the file name and/or path to the parameter fileNameWithPath.

Syntax:

public FileDialog SetFileName(
	string fileNameWithPath
)

Parameters:

Parameter

Description

fileNameWithPath

Return Value:

Returns the same instance of the FileDialog on which the method is called, so that you can do FileDialog.SetFileName(fileName).Save();.

Last updated