Class FileChooserRequest
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class FileChooserRequest : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FileChooserRequest
- Implements
- Inherited Members
Constructors
FileChooserRequest(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FileChooserRequest(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileChooserRequest(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileChooserRequest(CreationData data)
Parameters
dataCreationData
FileChooserRequest(FileChooserRequestHandle)
protected FileChooserRequest(FileChooserRequestHandle handle)
Parameters
handleFileChooserRequestHandle
Fields
FilterPropertyDefinition
public static readonly Property<FileFilter?, FileChooserRequest> FilterPropertyDefinition
Field Value
MimeTypesPropertyDefinition
public static readonly Property<string[], FileChooserRequest> MimeTypesPropertyDefinition
Field Value
SelectMultiplePropertyDefinition
public static readonly Property<bool, FileChooserRequest> SelectMultiplePropertyDefinition
Field Value
SelectedFilesPropertyDefinition
public static readonly Property<string[], FileChooserRequest> SelectedFilesPropertyDefinition
Field Value
Properties
Filter
public FileFilter? Filter { get; }
Property Value
MimeTypes
public string[] MimeTypes { get; }
Property Value
- string[]
SelectMultiple
public bool SelectMultiple { get; }
Property Value
SelectedFiles
public string[] SelectedFiles { get; }
Property Value
- string[]
Methods
Cancel()
public void Cancel()
GetGType()
public static Type GetGType()
Returns
GetMimeTypes()
public string[] GetMimeTypes()
Returns
- string[]
GetMimeTypesFilter()
public FileFilter GetMimeTypesFilter()
Returns
GetSelectMultiple()
public bool GetSelectMultiple()
Returns
GetSelectedFiles()
public string[] GetSelectedFiles()
Returns
- string[]
NewFromPointer(nint, bool)
Creates a new managed FileChooserRequest instance for a given pointer.
public static FileChooserRequest NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileChooserRequest and sets the properties specified by the construct arguments.
public static FileChooserRequest NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SelectFiles(string[])
public void SelectFiles(string[] files)
Parameters
filesstring[]