Class SaveAsService
A service used to present a save as dialog for the project file system.
Implements
Inherited Members
Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public class SaveAsService : ISaveAsService
Constructors
| Edit this page View SourceSaveAsService(IContentFileManager)
Initializes a new instance of the SaveAsService class.
Declaration
public SaveAsService(IContentFileManager fileManager)
Parameters
Type | Name | Description |
---|---|---|
IContentFileManager | fileManager | The file manager for the project. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
Methods
| Edit this page View SourceSaveAs(string, string, string)
Function to present a means of providing a path for a save as operation.
Declaration
public string SaveAs(string currentFileName, string filesOfType, string typeKey = "Type")
Parameters
Type | Name | Description |
---|---|---|
string | currentFileName | The current file name. |
string | filesOfType | The file type to search for. |
string | typeKey | [Optional] The key to check in the file metadata for the file type. |
Returns
Type | Description |
---|---|
string | The selected file path to save the file as. |