Table of Contents

Class FileDialog

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class FileDialog : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
FileDialog
Implements
Inherited Members

Constructors

FileDialog(bool, params ConstructArgument[])

protected FileDialog(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

FileDialog(IntPtr, bool)

protected FileDialog(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptLabelPropertyDefinition

public static readonly Property<string?, FileDialog> AcceptLabelPropertyDefinition

Field Value

Property<string, FileDialog>

DefaultFilterPropertyDefinition

public static readonly Property<FileFilter?, FileDialog> DefaultFilterPropertyDefinition

Field Value

Property<FileFilter, FileDialog>

FiltersPropertyDefinition

public static readonly Property<ListModel, FileDialog> FiltersPropertyDefinition

Field Value

Property<ListModel, FileDialog>

InitialFilePropertyDefinition

public static readonly Property<File, FileDialog> InitialFilePropertyDefinition

Field Value

Property<File, FileDialog>

InitialFolderPropertyDefinition

public static readonly Property<File, FileDialog> InitialFolderPropertyDefinition

Field Value

Property<File, FileDialog>

InitialNamePropertyDefinition

public static readonly Property<string?, FileDialog> InitialNamePropertyDefinition

Field Value

Property<string, FileDialog>

ModalPropertyDefinition

public static readonly Property<bool, FileDialog> ModalPropertyDefinition

Field Value

Property<bool, FileDialog>

TitlePropertyDefinition

public static readonly Property<string?, FileDialog> TitlePropertyDefinition

Field Value

Property<string, FileDialog>

Properties

AcceptLabel

public string? AcceptLabel { get; set; }

Property Value

string

DefaultFilter

public FileFilter? DefaultFilter { get; set; }

Property Value

FileFilter

Filters

public ListModel Filters { get; set; }

Property Value

ListModel

InitialFile

public File InitialFile { get; set; }

Property Value

File

InitialFolder

public File InitialFolder { get; set; }

Property Value

File

InitialName

public string? InitialName { get; set; }

Property Value

string

Modal

public bool Modal { get; set; }

Property Value

bool

Title

public string? Title { get; set; }

Property Value

string

Methods

ChooseAsync(Window)

public Task<int> ChooseAsync(Window parent)

Parameters

parent Window

Returns

Task<int>

GetAcceptLabel()

[Version("4.10")]
public string? GetAcceptLabel()

Returns

string

GetDefaultFilter()

[Version("4.10")]
public FileFilter? GetDefaultFilter()

Returns

FileFilter

GetFilters()

[Version("4.10")]
public ListModel? GetFilters()

Returns

ListModel

GetGType()

public static Type GetGType()

Returns

Type

GetInitialFile()

[Version("4.10")]
public File? GetInitialFile()

Returns

File

GetInitialFolder()

[Version("4.10")]
public File? GetInitialFolder()

Returns

File

GetInitialName()

[Version("4.10")]
public string? GetInitialName()

Returns

string

GetModal()

[Version("4.10")]
public bool GetModal()

Returns

bool

GetTitle()

[Version("4.10")]
public string GetTitle()

Returns

string

New()

[Version("4.10")]
public static FileDialog New()

Returns

FileDialog

OpenAsync(Window)

public Task<File?> OpenAsync(Window parent)

Parameters

parent Window

Returns

Task<File>

OpenFinish(AsyncResult)

[Version("4.10")]
public File? OpenFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

File

OpenMultipleAsync(Window)

public Task<ListModel?> OpenMultipleAsync(Window parent)

Parameters

parent Window

Returns

Task<ListModel>

OpenMultipleFinish(AsyncResult)

[Version("4.10")]
public ListModel? OpenMultipleFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

ListModel

SaveAsync(Window)

public Task<File?> SaveAsync(Window parent)

Parameters

parent Window

Returns

Task<File>

SaveFinish(AsyncResult)

[Version("4.10")]
public File? SaveFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

File

SelectFolderAsync(Window)

public Task<File?> SelectFolderAsync(Window parent)

Parameters

parent Window

Returns

Task<File>

SelectFolderFinish(AsyncResult)

[Version("4.10")]
public File? SelectFolderFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

File

SelectMultipleFoldersAsync(Window)

public Task<ListModel?> SelectMultipleFoldersAsync(Window parent)

Parameters

parent Window

Returns

Task<ListModel>

SelectMultipleFoldersFinish(AsyncResult)

[Version("4.10")]
public ListModel? SelectMultipleFoldersFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

ListModel

SetAcceptLabel(string?)

[Version("4.10")]
public void SetAcceptLabel(string? acceptLabel)

Parameters

acceptLabel string

SetDefaultFilter(FileFilter?)

[Version("4.10")]
public void SetDefaultFilter(FileFilter? filter)

Parameters

filter FileFilter

SetFilters(ListModel?)

[Version("4.10")]
public void SetFilters(ListModel? filters)

Parameters

filters ListModel

SetInitialFile(File?)

[Version("4.10")]
public void SetInitialFile(File? file)

Parameters

file File

SetInitialFolder(File?)

[Version("4.10")]
public void SetInitialFolder(File? folder)

Parameters

folder File

SetInitialName(string?)

[Version("4.10")]
public void SetInitialName(string? name)

Parameters

name string

SetModal(bool)

[Version("4.10")]
public void SetModal(bool modal)

Parameters

modal bool

SetTitle(string)

[Version("4.10")]
public void SetTitle(string title)

Parameters

title string