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
Fields
DesktopFolderSignal
Signal Descriptor for OnDesktopFolder.
public static readonly Signal<FileChooserWidget> DesktopFolderSignal
Field Value
DownFolderSignal
Signal Descriptor for OnDownFolder.
public static readonly Signal<FileChooserWidget> DownFolderSignal
Field Value
HomeFolderSignal
Signal Descriptor for OnHomeFolder.
public static readonly Signal<FileChooserWidget> HomeFolderSignal
Field Value
LocationPopupOnPasteSignal
Signal Descriptor for OnLocationPopupOnPaste.
public static readonly Signal<FileChooserWidget> LocationPopupOnPasteSignal
Field Value
LocationPopupSignal
Signal Descriptor for OnLocationPopup.
public static readonly Signal<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs> LocationPopupSignal
Field Value
LocationTogglePopupSignal
Signal Descriptor for OnLocationTogglePopup.
public static readonly Signal<FileChooserWidget> LocationTogglePopupSignal
Field Value
PlacesShortcutSignal
Signal Descriptor for OnPlacesShortcut.
public static readonly Signal<FileChooserWidget> PlacesShortcutSignal
Field Value
QuickBookmarkSignal
Signal Descriptor for OnQuickBookmark.
public static readonly Signal<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs> QuickBookmarkSignal
Field Value
RecentShortcutSignal
Signal Descriptor for OnRecentShortcut.
public static readonly Signal<FileChooserWidget> RecentShortcutSignal
Field Value
SearchModePropertyDefinition
public static readonly Property<bool, FileChooserWidget> SearchModePropertyDefinition
Field Value
SearchShortcutSignal
Signal Descriptor for OnSearchShortcut.
public static readonly Signal<FileChooserWidget> SearchShortcutSignal
Field Value
ShowHiddenSignal
Signal Descriptor for OnShowHidden.
public static readonly Signal<FileChooserWidget> ShowHiddenSignal
Field Value
ShowTimePropertyDefinition
public static readonly Property<bool, FileChooserWidget> ShowTimePropertyDefinition
Field Value
SubtitlePropertyDefinition
public static readonly Property<string?, FileChooserWidget> SubtitlePropertyDefinition
Field Value
UpFolderSignal
Signal Descriptor for OnUpFolder.
public static readonly Signal<FileChooserWidget> UpFolderSignal
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Action
public FileChooserAction Action { get; set; }
Property Value
CreateFolders
public bool CreateFolders { get; set; }
Property Value
Filter
public FileFilter? Filter { get; set; }
Property Value
Filters
public ListModel Filters { get; }
Property Value
SearchMode
public bool SearchMode { get; set; }
Property Value
SelectMultiple
public bool SelectMultiple { get; set; }
Property Value
ShortcutFolders
public ListModel ShortcutFolders { get; }
Property Value
ShowTime
public bool ShowTime { get; }
Property Value
Subtitle
public string? Subtitle { get; }
Property Value
Methods
AddChoice(string, string, string[]?, string[]?)
public void AddChoice(string id, string label, string[]? options, string[]? optionLabels)
Parameters
AddFilter(FileFilter)
public void AddFilter(FileFilter filter)
Parameters
filter
FileFilter
AddShortcutFolder(File)
public bool AddShortcutFolder(File folder)
Parameters
folder
File
Returns
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAction()
public FileChooserAction GetAction()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetChoice(string)
public string? GetChoice(string id)
Parameters
id
string
Returns
GetCreateFolders()
public bool GetCreateFolders()
Returns
GetCurrentFolder()
public File? GetCurrentFolder()
Returns
GetCurrentName()
public string? GetCurrentName()
Returns
GetFile()
public File? GetFile()
Returns
GetFiles()
public ListModel GetFiles()
Returns
GetFilter()
public FileFilter? GetFilter()
Returns
GetFilters()
public ListModel GetFilters()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetSelectMultiple()
public bool GetSelectMultiple()
Returns
GetShortcutFolders()
public ListModel GetShortcutFolders()
Returns
New(FileChooserAction)
public static FileChooserWidget New(FileChooserAction action)
Parameters
action
FileChooserAction
Returns
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
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
AccessiblenextSibling
Accessible
SetAction(FileChooserAction)
public void SetAction(FileChooserAction action)
Parameters
action
FileChooserAction
SetChoice(string, string)
public void SetChoice(string id, string option)
Parameters
SetCreateFolders(bool)
public void SetCreateFolders(bool createFolders)
Parameters
createFolders
bool
SetCurrentFolder(File?)
public bool SetCurrentFolder(File? file)
Parameters
file
File
Returns
SetCurrentName(string)
public void SetCurrentName(string name)
Parameters
name
string
SetFile(File)
public bool SetFile(File file)
Parameters
file
File
Returns
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
OnDownFolder
public event SignalHandler<FileChooserWidget> OnDownFolder
Event Type
OnHomeFolder
public event SignalHandler<FileChooserWidget> OnHomeFolder
Event Type
OnLocationPopup
public event SignalHandler<FileChooserWidget, FileChooserWidget.LocationPopupSignalArgs> OnLocationPopup
Event Type
OnLocationPopupOnPaste
public event SignalHandler<FileChooserWidget> OnLocationPopupOnPaste
Event Type
OnLocationTogglePopup
public event SignalHandler<FileChooserWidget> OnLocationTogglePopup
Event Type
OnPlacesShortcut
public event SignalHandler<FileChooserWidget> OnPlacesShortcut
Event Type
OnQuickBookmark
public event SignalHandler<FileChooserWidget, FileChooserWidget.QuickBookmarkSignalArgs> OnQuickBookmark
Event Type
OnRecentShortcut
public event SignalHandler<FileChooserWidget> OnRecentShortcut
Event Type
OnSearchShortcut
public event SignalHandler<FileChooserWidget> OnSearchShortcut
Event Type
OnShowHidden
public event SignalHandler<FileChooserWidget> OnShowHidden
Event Type
OnUpFolder
public event SignalHandler<FileChooserWidget> OnUpFolder