Table of Contents

Class FileChooserDialog

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class FileChooserDialog : Dialog, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, FileChooser, Native, Root, ShortcutManager, IHandle, GTypeProvider
Inheritance
FileChooserDialog
Implements
Inherited Members

Constructors

FileChooserDialog()

public FileChooserDialog()

FileChooserDialog(params ConstructArgument[])

protected FileChooserDialog(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FileChooserDialog(IntPtr, bool)

protected FileChooserDialog(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

Action

public FileChooserAction Action { get; set; }

Property Value

FileChooserAction

CreateFolders

public bool CreateFolders { get; set; }

Property Value

bool

Filter

public FileFilter? Filter { get; set; }

Property Value

FileFilter

Filters

public ListModel Filters { get; }

Property Value

ListModel

SelectMultiple

public bool SelectMultiple { get; set; }

Property Value

bool

ShortcutFolders

public ListModel ShortcutFolders { get; }

Property Value

ListModel

Methods

AddChoice(string, string, string[]?, string[]?)

public void AddChoice(string id, string label, string[]? options, string[]? optionLabels)

Parameters

id string
label string
options string[]
optionLabels string[]

AddFilter(FileFilter)

public void AddFilter(FileFilter filter)

Parameters

filter FileFilter

AddShortcutFolder(File)

public bool AddShortcutFolder(File folder)

Parameters

folder File

Returns

bool

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAction()

public FileChooserAction GetAction()

Returns

FileChooserAction

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetChoice(string)

public string? GetChoice(string id)

Parameters

id string

Returns

string

GetCreateFolders()

public bool GetCreateFolders()

Returns

bool

GetCurrentFolder()

public File? GetCurrentFolder()

Returns

File

GetCurrentName()

public string? GetCurrentName()

Returns

string

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFile()

public File? GetFile()

Returns

File

GetFiles()

public ListModel GetFiles()

Returns

ListModel

GetFilter()

public FileFilter? GetFilter()

Returns

FileFilter

GetFilters()

public ListModel GetFilters()

Returns

ListModel

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRenderer()

public Renderer? GetRenderer()

Returns

Renderer

GetSelectMultiple()

public bool GetSelectMultiple()

Returns

bool

GetShortcutFolders()

public ListModel GetShortcutFolders()

Returns

ListModel

GetSurface()

public Surface? GetSurface()

Returns

Surface

GetSurfaceTransform(out double, out double)

public void GetSurfaceTransform(out double x, out double y)

Parameters

x double
y double

Realize()

public void Realize()

RemoveChoice(string)

public void RemoveChoice(string id)

Parameters

id string

RemoveFilter(FileFilter)

public void RemoveFilter(FileFilter filter)

Parameters

filter FileFilter

RemoveShortcutFolder(File)

public bool RemoveShortcutFolder(File folder)

Parameters

folder File

Returns

bool

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetAction(FileChooserAction)

public void SetAction(FileChooserAction action)

Parameters

action FileChooserAction

SetChoice(string, string)

public void SetChoice(string id, string option)

Parameters

id string
option string

SetCreateFolders(bool)

public void SetCreateFolders(bool createFolders)

Parameters

createFolders bool

SetCurrentFolder(File?)

public bool SetCurrentFolder(File? file)

Parameters

file File

Returns

bool

SetCurrentName(string)

public void SetCurrentName(string name)

Parameters

name string

SetFile(File)

public bool SetFile(File file)

Parameters

file File

Returns

bool

SetFilter(FileFilter)

public void SetFilter(FileFilter filter)

Parameters

filter FileFilter

SetSelectMultiple(bool)

public void SetSelectMultiple(bool selectMultiple)

Parameters

selectMultiple bool

Unrealize()

public void Unrealize()

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible