Table of Contents

Class FileFilter

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class FileFilter : Filter, Buildable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
FileFilter
Implements
Inherited Members

Constructors

FileFilter(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 FileFilter(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FileFilter(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileFilter(CreationData data)

Parameters

data CreationData

FileFilter(FileFilterHandle)

protected FileFilter(FileFilterHandle handle)

Parameters

handle FileFilterHandle

Fields

NamePropertyDefinition

public static readonly Property<string?, FileFilter> NamePropertyDefinition

Field Value

Property<string, FileFilter>

Properties

Name

public string? Name { get; set; }

Property Value

string

Methods

AddMimeType(string)

public void AddMimeType(string mimeType)

Parameters

mimeType string

AddPattern(string)

public void AddPattern(string pattern)

Parameters

pattern string

AddPixbufFormats()

public void AddPixbufFormats()

AddSuffix(string)

[Version("4.4")]
public void AddSuffix(string suffix)

Parameters

suffix string

GetAttributes()

public string[] GetAttributes()

Returns

string[]

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetName()

public string? GetName()

Returns

string

New()

public static FileFilter New()

Returns

FileFilter

NewFromGvariant(Variant)

public static FileFilter NewFromGvariant(Variant variant)

Parameters

variant Variant

Returns

FileFilter

NewFromPointer(nint, bool)

Creates a new managed FileFilter instance for a given pointer.

public static FileFilter NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileFilter

NewWithProperties(ConstructArgument[])

Creates a new FileFilter and sets the properties specified by the construct arguments.

public static FileFilter NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileFilter

SetName(string?)

public void SetName(string? name)

Parameters

name string

ToGvariant()

public Variant ToGvariant()

Returns

Variant