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

IGxFileFilter Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxFileFilter Interface
ArcGIS Developer Help

IGxFileFilter Interface

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

Product Availability

Available with ArcGIS Desktop.


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.



Name 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.

Classes that implement IGxFileFilter

Classes Description
GxFileFilter The catalog's file filter.