Class FileChooserHelper
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public sealed class FileChooserHelper : Object, FileChooser, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
FileChooserHelper
- Implements
-
- Inherited Members
-
Constructors
FileChooserHelper(ObjectHandle)
public FileChooserHelper(ObjectHandle handle)
Parameters
handle ObjectHandle
Properties
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
GetAction()
public FileChooserAction GetAction()
Returns
- FileChooserAction
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()
Returns
- File
GetFiles()
public ListModel GetFiles()
Returns
- ListModel
GetFilter()
public FileFilter? GetFilter()
Returns
- FileFilter
GetFilters()
public ListModel GetFilters()
Returns
- ListModel
GetGType()
public static Type GetGType()
Returns
- Type
GetSelectMultiple()
public bool GetSelectMultiple()
Returns
- bool
GetShortcutFolders()
public ListModel GetShortcutFolders()
Returns
- ListModel
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
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