This document is archived and information here might be outdated.  Recommended version.


IGxFileFilter Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Catalog)  

IGxFileFilter Interface

Provides access to members that manage a file filter for various file types.

Product Availability

Available with ArcGIS Desktop.

Description

The GxFileFilter object implements the IGxFileFilter interface. It lets you manipulate the file types displayed by ArcCatalog. Through this interface, you can add additional file types to the filter, remove file types, and determine whether or not a particular file will be displayed.

The Filter method returns a Boolean that indicates whether or not the specified file will be displayed in ArcCatalog based on the current file filter.

The FindFileType method returns an index that indicates the position of the specified file extension within the filter list. A value of -1 indicates the extension was not found. Do not include the “.” when passing in the extension.

 

Members

Description
Method AddFileType Add the file type to the collection.
Method DeleteFileType Remove the file type.
Read-only property FileTypeCount The number of file types for the filter.
Method Filter Checks to see if the indicated file passes the filter.
Method FindFileType The index of the file type in the filter or -1.
Method GetFileType Returns information on the file type at the specified index in the file filter.

CoClasses that implement IGxFileFilter

CoClasses and Classes Description
GxFileFilter The catalog's file filter.