Skip to main content

FilePickerFileType Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Represents a name mapped to the associated file types (extensions).

public class FilePickerFileType

Inheritance: object -> FilePickerFileType

Constructors

NameDescription
FilePickerFileTypeRepresents a name mapped to the associated file types (extensions).

FilePickerFileType Constructor

Represents a name mapped to the associated file types (extensions).

public FilePickerFileType(string name)

Parameters

name string

Methods

NameDescription
ToStringNo summary available.

ToString Method

public string ToString()

Returns

string

Properties

NameDescription
AppleUniformTypeIdentifiersList of extensions in Apple uniform format.
MimeTypesList of extensions in MIME format.
NameFile type name.
PatternsList of extensions in GLOB format. I.e. ".png" or ".*".

AppleUniformTypeIdentifiers Property

List of extensions in Apple uniform format.

public System.Collections.Generic.IReadOnlyList<string> AppleUniformTypeIdentifiers { get; set; }

Remarks

Used only on Apple devices. See https://developer.apple.com/documentation/uniformtypeidentifiers/system_declared_uniform_type_identifiers.

MimeTypes Property

List of extensions in MIME format.

public System.Collections.Generic.IReadOnlyList<string> MimeTypes { get; set; }

Remarks

Used on Android, Linux and Browser platforms.

Name Property

File type name.

public string Name { get; set; }

Patterns Property

List of extensions in GLOB format. I.e. ".png" or ".*".

public System.Collections.Generic.IReadOnlyList<string> Patterns { get; set; }

Remarks

Used on Windows, Linux and Browser platforms.