UrlEditor.Filter Property

Definition

Gets the file name filter string for the editor. This is used to determine the items that appear in the file list of the dialog box.

C#
protected virtual string Filter { get; }

Property Value

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

Remarks

The Filter property specifies a filter string for all files (*.*).

A filter string contains one or more filter options. Each filter option 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 that contains two filter options:

"Text Files (*.txt)|*.txt|All Files (*.*)|*.*".

You can specify several filter patterns in a filter option by separating the filter patterns with semicolons. The following is an example of a filter string in which the first filter option specifies three filter patterns:

"Text Files(*.txt;*.text;*.lst)|*.txt;*.text;*.lst|All Files (*.*)|*.*".

Applies to

產品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1