Table of Contents

Constructor FileDialogFilterEntry

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

FileDialogFilterEntry(string, IEnumerable<string>, object?)

Creates an entry for use with FileDialogFilterBuilder.

public FileDialogFilterEntry(string description, IEnumerable<string> extensions, object? tag = null)

Parameters

description string

The description for the entry. This string must be non-empty, and may not have a pipe ('|') character.

extensions IEnumerable<string>

A list of file extensions for the entry. There list must have at least one element. Each string must be non-null, non-empty, not all whitespace, start with a period, and may not contain a pipe character ('|').

tag object

Contains data to associate with the entry. Any value or object instance is permissible, including null. A common tag to use is the FileType instance that the description and extensions are obtained from.