Table of Contents

Class FileChooserWidget

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class FileChooserWidget : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, FileChooser, IHandle, GTypeProvider
Inheritance
FileChooserWidget
Implements
Inherited Members

Constructors

FileChooserWidget()

public FileChooserWidget()

FileChooserWidget(params ConstructArgument[])

protected FileChooserWidget(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FileChooserWidget(IntPtr, bool)

protected FileChooserWidget(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

DesktopFolderSignal

Signal Descriptor for OnDesktopFolder.

public static readonly Signal<FileChooserWidget> DesktopFolderSignal

Field Value

Signal<FileChooserWidget>

DownFolderSignal

Signal Descriptor for OnDownFolder.

public static readonly Signal<FileChooserWidget> DownFolderSignal

Field Value

Signal<FileChooserWidget>

HomeFolderSignal

Signal Descriptor for OnHomeFolder.

public static readonly Signal<FileChooserWidget> HomeFolderSignal

Field Value

Signal<FileChooserWidget>

LocationPopupOnPasteSignal

Signal Descriptor for OnLocationPopupOnPaste.

public static readonly Signal<FileChooserWidget> LocationPopupOnPasteSignal

Field Value

Signal<FileChooserWidget>

LocationPopupSignal

Signal Descriptor for OnLocationPopup.

public static readonly Signal<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs> LocationPopupSignal

Field Value

Signal<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs>

LocationTogglePopupSignal

Signal Descriptor for OnLocationTogglePopup.

public static readonly Signal<FileChooserWidget> LocationTogglePopupSignal

Field Value

Signal<FileChooserWidget>

PlacesShortcutSignal

Signal Descriptor for OnPlacesShortcut.

public static readonly Signal<FileChooserWidget> PlacesShortcutSignal

Field Value

Signal<FileChooserWidget>

QuickBookmarkSignal

Signal Descriptor for OnQuickBookmark.

public static readonly Signal<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs> QuickBookmarkSignal

Field Value

Signal<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs>

RecentShortcutSignal

Signal Descriptor for OnRecentShortcut.

public static readonly Signal<FileChooserWidget> RecentShortcutSignal

Field Value

Signal<FileChooserWidget>

SearchModePropertyDefinition

public static readonly Property<bool, FileChooserWidget> SearchModePropertyDefinition

Field Value

Property<bool, FileChooserWidget>

SearchShortcutSignal

Signal Descriptor for OnSearchShortcut.

public static readonly Signal<FileChooserWidget> SearchShortcutSignal

Field Value

Signal<FileChooserWidget>

ShowHiddenSignal

Signal Descriptor for OnShowHidden.

public static readonly Signal<FileChooserWidget> ShowHiddenSignal

Field Value

Signal<FileChooserWidget>

ShowTimePropertyDefinition

public static readonly Property<bool, FileChooserWidget> ShowTimePropertyDefinition

Field Value

Property<bool, FileChooserWidget>

SubtitlePropertyDefinition

public static readonly Property<string?, FileChooserWidget> SubtitlePropertyDefinition

Field Value

Property<string, FileChooserWidget>

UpFolderSignal

Signal Descriptor for OnUpFolder.

public static readonly Signal<FileChooserWidget> UpFolderSignal

Field Value

Signal<FileChooserWidget>

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

SearchMode

public bool SearchMode { get; set; }

Property Value

bool

SelectMultiple

public bool SelectMultiple { get; set; }

Property Value

bool

ShortcutFolders

public ListModel ShortcutFolders { get; }

Property Value

ListModel

ShowTime

public bool ShowTime { get; }

Property Value

bool

Subtitle

public string? Subtitle { get; }

Property Value

string

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

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

GetSelectMultiple()

public bool GetSelectMultiple()

Returns

bool

GetShortcutFolders()

public ListModel GetShortcutFolders()

Returns

ListModel

New(FileChooserAction)

public static FileChooserWidget New(FileChooserAction action)

Parameters

action FileChooserAction

Returns

FileChooserWidget

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

UpdateNextAccessibleSibling(Accessible?)

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

Parameters

newSibling Accessible

Events

OnDesktopFolder

public event SignalHandler<FileChooserWidget> OnDesktopFolder

Event Type

SignalHandler<FileChooserWidget>

OnDownFolder

public event SignalHandler<FileChooserWidget> OnDownFolder

Event Type

SignalHandler<FileChooserWidget>

OnHomeFolder

public event SignalHandler<FileChooserWidget> OnHomeFolder

Event Type

SignalHandler<FileChooserWidget>

OnLocationPopup

public event SignalHandler<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs> OnLocationPopup

Event Type

SignalHandler<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs>

OnLocationPopupOnPaste

public event SignalHandler<FileChooserWidget> OnLocationPopupOnPaste

Event Type

SignalHandler<FileChooserWidget>

OnLocationTogglePopup

public event SignalHandler<FileChooserWidget> OnLocationTogglePopup

Event Type

SignalHandler<FileChooserWidget>

OnPlacesShortcut

public event SignalHandler<FileChooserWidget> OnPlacesShortcut

Event Type

SignalHandler<FileChooserWidget>

OnQuickBookmark

public event SignalHandler<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs> OnQuickBookmark

Event Type

SignalHandler<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs>

OnRecentShortcut

public event SignalHandler<FileChooserWidget> OnRecentShortcut

Event Type

SignalHandler<FileChooserWidget>

OnSearchShortcut

public event SignalHandler<FileChooserWidget> OnSearchShortcut

Event Type

SignalHandler<FileChooserWidget>

OnShowHidden

public event SignalHandler<FileChooserWidget> OnShowHidden

Event Type

SignalHandler<FileChooserWidget>

OnUpFolder

public event SignalHandler<FileChooserWidget> OnUpFolder

Event Type

SignalHandler<FileChooserWidget>