Gorgon
Show / Hide Table of Contents

Class FileOpenDialogService

A service used to show a dialog for opening a file.

Inheritance
object
FileOpenDialogService
Implements
IFileDialogService
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public class FileOpenDialogService : IFileDialogService

Properties

| Edit this page View Source

DialogTitle

Property to set or return the title for the dialog.

Declaration
public string DialogTitle { get; set; }
Property Value
Type Description
string
| Edit this page View Source

FileFilter

Property to set or return a file filter.

Declaration
public string FileFilter { get; set; }
Property Value
Type Description
string
| Edit this page View Source

InitialDirectory

Property to set or return the initial directory.

Declaration
public DirectoryInfo InitialDirectory { get; set; }
Property Value
Type Description
DirectoryInfo
| Edit this page View Source

InitialFilePath

Property to set or return the initial file path to use.

Declaration
public string InitialFilePath { get; set; }
Property Value
Type Description
string

Methods

| Edit this page View Source

GetFilename()

Function to retrieve a single file name.

Declaration
public virtual string GetFilename()
Returns
Type Description
string

The selected file path, or null if cancelled.

Implements

IFileDialogService

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author