Table of Contents

Method AddEntry

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

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

Adds an entry that will be included in the filter text string.

public FileDialogFilterBuilder AddEntry(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.

Returns

FileDialogFilterBuilder

AddEntry(FileDialogFilterEntry)

Adds an entry that will be included in the filter text string.

public FileDialogFilterBuilder AddEntry(FileDialogFilterEntry entry)

Parameters

entry FileDialogFilterEntry

Returns

FileDialogFilterBuilder