ArcObjects Library Reference (Output)  

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(
  BSTR* 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 (Code Files: ExportActiveViewVB_Net) |