Share via


FileDialogFilters Interface 

A collection of FileDialogFilter objects that represent the types of files that can be selected in a file dialog box that is displayed using the FileDialog object.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Public Class ileDialogFiltersImplementation
    Implements FileDialogFilters
End Class
Dim ileDialogFiltersImplementation1 As New ileDialogFiltersImplementation()

Syntax

Public Interface FileDialogFilters
    Inherits _IMsoDispObj, IEnumerable
public interface FileDialogFilters : _IMsoDispObj, IEnumerable
public interface class FileDialogFilters : public _IMsoDispObj, IEnumerable
public interface FileDialogFilters implements _IMsoDispObj, IEnumerable
public interface FileDialogFilters implements _IMsoDispObj, , IEnumerable

Remarks

Use the Filters property of the FileDialog object to return a FileDialogFilters collection.

Use the Add method to add FileDialogFilter objects to the FileDialogFilters collection.

When changing the FileDialogFilters collection, remember that each application can only instantiate a single FileDialog object. This means that the FileDialogFilters collection will reset to its default filters whenever you call the FileDialog method with a new dialog box type.

Note   A run-time error will occur if the Filters property is used in conjunction with the Clear, Add, or Delete methods when applied to a Save As FileDialog object.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

FileDialogFilters Members