Table of Contents

Method GetFileDialogFilter

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetFileDialogFilter(IEnumerable<string>, bool)

Generates file dialog filter. Result example:"Image Files (.png; .jpg)|.png;.jpg|All Files (.)|.".

public static string GetFileDialogFilter(IEnumerable<string> extensions, bool addAllFiles = false)

Parameters

extensions IEnumerable<string>

Array of extensions. Each item is an extension with "." in the beginning (like ".exe").

addAllFiles bool

Returns

string