Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 939 Bytes
//Copyright (c) Microsoft Corporation. All rights reserved.
using System.Collections.ObjectModel;
using Microsoft.WindowsAPICodePack.Shell;
namespace Microsoft.WindowsAPICodePack.Dialogs
{
/// <summary>
/// Provides a strongly typed collection for file dialog filters.
/// </summary>
public class CommonFileDialogFilterCollection : Collection<CommonFileDialogFilter>
{
// Make the default constructor internal so users can't instantiate this
// collection by themselves.
internal CommonFileDialogFilterCollection() { }
internal ShellNativeMethods.FilterSpec[] GetAllFilterSpecs()
{
ShellNativeMethods.FilterSpec[] filterSpecs = new ShellNativeMethods.FilterSpec[this.Count];
for (int i = 0; i < this.Count; i++)
{
filterSpecs[i] = this[i].GetFilterSpec();
}
return filterSpecs;
}
}
}
You can’t perform that action at this time.