Table of Contents

Method GetFileDialogFilter

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

GetFileDialogFilter(string, string)

Builds string for the Filter property of OpenFileDialog and SaveFileDialog. Sample: "PNG Files (.png)|.png".

public static string GetFileDialogFilter(string text, string ext)

Parameters

text string

Text part of the filter.

ext string

File extension used in the filter. Can be specified with or without '.' character at the beginning.

Returns

string