gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Creates a new dialog for the user to select one or more files, directories, or cancel.FileSelection should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory.
The filesystem can be navigated using the directory list or the drop-down history menu. Alternatively, the TAB key can be used to navigate using filename completion - common in text based editors such as emacs and jed.
Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog.
The functionality of the FileSelection can be extended by using the available accessors to the buttons and drop downs.
Gtk.DialogAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.VoidRestrict the visible files and directories to those that match the given .
A simple wildcard pattern such as '*.txt'.
This method attempts to match to a valid filenames or subdirectories in the current directory. If a match can be made, the matched filename will appear in the text entry field of the file selection dialog. If a partial match can be made, the "Files" list will contain those file names which have been partially matched, and the "Folders" list will show those directories with a partial match.MethodSystem.VoidEnsures that the file operation buttons are visible.MethodSystem.VoidEnsures that the file operation buttons are hidden.MethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
GLib type for the type
Creates a new instance of FileSelection, using the GLib-provided typeThis is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code.ConstructorInternal constructor
Pointer to the C object.
An instance of FileSelection, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorThe main way to construct a new file selector.
A title that will appear in the window's title bar.
A new FileSelectionConstructorInternal constructorPropertySystem.UInt32The GLib Type for Gtk.FileSelectionThe GLib TYpe for the Gtk.FileSelection class.PropertyGtk.HButtonBoxTo be addedTo be added: an object of type 'Gtk.HButtonBox'To be addedPropertyGtk.HButtonBoxTo be addedTo be added: an object of type 'Gtk.HButtonBox'To be addedPropertyGtk.ButtonThe 'rename file' button of this file selector.This button may or may not be visible, see and .PropertyGtk.ButtonThe 'delete' button of this file selector.This button may or may not be visible, see and .PropertyGtk.ButtonThe 'create directory' button of this file selector.This button may or may not be visible, see and .PropertySystem.StringTo be addedTo be added: an object of type 'string'To be addedPropertyGtk.EntryThe main text entry widget of this file selector.PropertyGtk.MessageDialogTo be addedTo be added: an object of type 'Gtk.MessageDialog'To be addedPropertyGtk.MenuThe that is displayed by the .A menu containing the file system paths higher than the selected directory, and the user's directory history.Note that this widget does not just contain history, it contains a list of directories above the current directory in the filesystem as well as user directory history.PropertyGtk.OptionMenuThe drop down menu containing directories in the filesystem above the selected directory, and the user's directory history.The at the top of the file selector.This widget displays the menu returned by .PropertyGtk.ButtonA help button, not displayed by default.PropertyGtk.ButtonThe 'cancel' of this file selector.PropertyGtk.ButtonThe 'OK' button of this file selector.PropertyGtk.LabelTo be addedTo be added: an object of type 'Gtk.Label'To be addedPropertyGtk.EntryTo be addedTo be added: an object of type 'Gtk.Entry'To be addedPropertyGtk.TreeViewThe widget that displays files in this file selector.PropertyGtk.TreeViewThe widget that displays directories in this file selector.PropertySystem.String[]Get the files that are selectedAn array of file pathsPropertySystem.BooleanManage whether buttons are displayed for doing file operations.
Set to to display the file buttons.
for buttons to be shown, otherwise.This manipulates whether the buttons for creating a directory, deleting files and renaming files, are displayed.PropertySystem.StringManage the selected filename.
Sets a default path for the file requestor.
The selected filename in the on-disk encoding.If includes a directory path, then the requestor will open with that path as its current working directory. The encoding of filename is the on-disk encoding, which may not be UTF-8.PropertySystem.BooleanManage whether more than one file can be selected.
Set to to allow more than one file to be selected in the file list, to only allow selection of a single file.
if multiple selections are allowed, otherwise.