Table of Contents

Interface FileChooser

Namespace
Gtk
Assembly
Gtk-4.0.dll
public interface FileChooser : IHandle
Inherited Members

Fields

ActionPropertyDefinition

public static readonly Property<FileChooserAction, FileChooser> ActionPropertyDefinition

Field Value

Property<FileChooserAction, FileChooser>

CreateFoldersPropertyDefinition

public static readonly Property<bool, FileChooser> CreateFoldersPropertyDefinition

Field Value

Property<bool, FileChooser>

FilterPropertyDefinition

public static readonly Property<FileFilter?, FileChooser> FilterPropertyDefinition

Field Value

Property<FileFilter, FileChooser>

FiltersPropertyDefinition

public static readonly Property<ListModel, FileChooser> FiltersPropertyDefinition

Field Value

Property<ListModel, FileChooser>

SelectMultiplePropertyDefinition

public static readonly Property<bool, FileChooser> SelectMultiplePropertyDefinition

Field Value

Property<bool, FileChooser>

ShortcutFoldersPropertyDefinition

public static readonly Property<ListModel, FileChooser> ShortcutFoldersPropertyDefinition

Field Value

Property<ListModel, FileChooser>

Properties

Action

FileChooserAction Action { get; set; }

Property Value

FileChooserAction

CreateFolders

bool CreateFolders { get; set; }

Property Value

bool

Filter

FileFilter? Filter { get; set; }

Property Value

FileFilter

Filters

ListModel Filters { get; }

Property Value

ListModel

SelectMultiple

bool SelectMultiple { get; set; }

Property Value

bool

ShortcutFolders

ListModel ShortcutFolders { get; }

Property Value

ListModel

Methods

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

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

Parameters

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

AddFilter(FileFilter)

void AddFilter(FileFilter filter)

Parameters

filter FileFilter

AddShortcutFolder(File)

bool AddShortcutFolder(File folder)

Parameters

folder File

Returns

bool

GetAction()

FileChooserAction GetAction()

Returns

FileChooserAction

GetChoice(string)

string? GetChoice(string id)

Parameters

id string

Returns

string

GetCreateFolders()

bool GetCreateFolders()

Returns

bool

GetCurrentFolder()

File? GetCurrentFolder()

Returns

File

GetCurrentName()

string? GetCurrentName()

Returns

string

GetFile()

File? GetFile()

Returns

File

GetFiles()

ListModel GetFiles()

Returns

ListModel

GetFilter()

FileFilter? GetFilter()

Returns

FileFilter

GetFilters()

ListModel GetFilters()

Returns

ListModel

GetSelectMultiple()

bool GetSelectMultiple()

Returns

bool

GetShortcutFolders()

ListModel GetShortcutFolders()

Returns

ListModel

RemoveChoice(string)

void RemoveChoice(string id)

Parameters

id string

RemoveFilter(FileFilter)

void RemoveFilter(FileFilter filter)

Parameters

filter FileFilter

RemoveShortcutFolder(File)

bool RemoveShortcutFolder(File folder)

Parameters

folder File

Returns

bool

SetAction(FileChooserAction)

void SetAction(FileChooserAction action)

Parameters

action FileChooserAction

SetChoice(string, string)

void SetChoice(string id, string option)

Parameters

id string
option string

SetCreateFolders(bool)

void SetCreateFolders(bool createFolders)

Parameters

createFolders bool

SetCurrentFolder(File?)

bool SetCurrentFolder(File? file)

Parameters

file File

Returns

bool

SetCurrentName(string)

void SetCurrentName(string name)

Parameters

name string

SetFile(File)

bool SetFile(File file)

Parameters

file File

Returns

bool

SetFilter(FileFilter)

void SetFilter(FileFilter filter)

Parameters

filter FileFilter

SetSelectMultiple(bool)

void SetSelectMultiple(bool selectMultiple)

Parameters

selectMultiple bool