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


IExport.Filter Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Output > ESRI.ArcGIS.Output > Interfaces > IE > IExport Interface > IExport.Filter Property
ArcGIS Developer Help

IExport.Filter Property

Filter String used in the CFileDialog class.

[Visual Basic .NET]
Public ReadOnly Property Filter As String
[C#]
public string Filter {get;}
[C++]
HRESULT get_Filter(
  System.String* Filter
);
[C++]
Parameters
Filter [out, retval]

Filter is a parameter of type BSTR*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method is primarily used for defining the extension of the export file name within the Export Map dialog.  The string contained in this value is a null-terminated pattern string that follows the standard for a Windows Open and Save As dialog filter.  The value of this property can change according to the state of the export object.  An ExportSVG object, for example, returns "SVG (*.svg)|*.svg" when its compression property is False, and "Compressed SVG (*.svgz)|*.svgz" when the compression property is True.  This makes the Filter ideal for automatically assigning the appropriate file name extension for an export file.

 

See Also

IExport Interface

.NET Samples

Export active view