NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileDialog.Filter

Gets or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.

[Visual Basic]
Public Property Filter As String
[C#]
public string Filter {get; set;}
[C++]
public: __property String* get_Filter();
public: __property void set_Filter(String*);
[JScript]
public function get Filter() : String;
public function set Filter(String);

Property Value

A string that contains information about the file filtering options available in the dialog box.

Remarks

For each filtering option, the filter string contains a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options are separated by the vertical bar.

The following is an example of a filter string: "Text files (*.txt)|*.txt|All files (*.*)|*.*"

See Also

FileDialog Class | FileDialog Members | System.WinForms Namespace | CheckFileExists | FilterIndex