Class FileChooserNative
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class FileChooserNative : NativeDialog, FileChooser, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
FileChooserNative
- Implements
-
- Inherited Members
-
Constructors
FileChooserNative(params ConstructArgument[])
public FileChooserNative(params ConstructArgument[] constructArguments)
Parameters
constructArguments ConstructArgument[]
FileChooserNative(FileChooserNativeHandle)
public FileChooserNative(FileChooserNativeHandle handle)
Parameters
handle FileChooserNativeHandle
Fields
AcceptLabelPropertyDefinition
public static readonly Property<string?, FileChooserNative> AcceptLabelPropertyDefinition
Field Value
- Property<string, FileChooserNative>
CancelLabelPropertyDefinition
public static readonly Property<string?, FileChooserNative> CancelLabelPropertyDefinition
Field Value
- Property<string, FileChooserNative>
Properties
AcceptLabel
public string? AcceptLabel { get; set; }
Property Value
- string
Action
public FileChooserAction Action { get; set; }
Property Value
- FileChooserAction
CancelLabel
public string? CancelLabel { get; set; }
Property Value
- string
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
GetAcceptLabel()
public string? GetAcceptLabel()
Returns
- string
GetAction()
public FileChooserAction GetAction()
Returns
- FileChooserAction
GetCancelLabel()
public string? GetCancelLabel()
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()
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
New(string?, Window?, FileChooserAction, string?, string?)
public static FileChooserNative New(string? title, Window? parent, FileChooserAction action, string? acceptLabel, string? cancelLabel)
Parameters
title string
parent Window
action FileChooserAction
acceptLabel string
cancelLabel string
Returns
- FileChooserNative
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
SetAcceptLabel(string?)
public void SetAcceptLabel(string? acceptLabel)
Parameters
acceptLabel string
SetAction(FileChooserAction)
public void SetAction(FileChooserAction action)
Parameters
action FileChooserAction
SetCancelLabel(string?)
public void SetCancelLabel(string? cancelLabel)
Parameters
cancelLabel string
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