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
constructArgumentsConstructArgument[]
FileFilter(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileFilter(CreationData data)
Parameters
dataCreationData
FileFilter(FileFilterHandle)
protected FileFilter(FileFilterHandle handle)
Parameters
handleFileFilterHandle
Fields
NamePropertyDefinition
public static readonly Property<string?, FileFilter> NamePropertyDefinition
Field Value
Properties
Name
public string? Name { get; set; }
Property Value
Methods
AddMimeType(string)
public void AddMimeType(string mimeType)
Parameters
mimeTypestring
AddPattern(string)
public void AddPattern(string pattern)
Parameters
patternstring
AddPixbufFormats()
public void AddPixbufFormats()
AddSuffix(string)
[Version("4.4")]
public void AddSuffix(string suffix)
Parameters
suffixstring
GetAttributes()
public string[] GetAttributes()
Returns
- string[]
GetBuildableId()
public string? GetBuildableId()
Returns
GetGType()
public static Type GetGType()
Returns
GetName()
public string? GetName()
Returns
New()
public static FileFilter New()
Returns
NewFromGvariant(Variant)
public static FileFilter NewFromGvariant(Variant variant)
Parameters
variantVariant
Returns
NewFromPointer(nint, bool)
Creates a new managed FileFilter instance for a given pointer.
public static FileFilter NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileFilter and sets the properties specified by the construct arguments.
public static FileFilter NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetName(string?)
public void SetName(string? name)
Parameters
namestring
ToGvariant()
public Variant ToGvariant()