System.Web.UI.Design.XslTransformFileEditor.Filter Property

Gets the URL filter options for the editor, which is used to filter the items that appear in the URL selection dialog box.

Syntax

protected override string Filter { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The XslTransformFileEditor.Filter property is used by the erload:System.Web.UI.Design.UrlEditor.EditValue method when calling the erload:System.Web.UI.Design.UrlBuilder.BuildUrl method, which displays the URL selection dialog box to the user at design time.

The XslTransformFileEditor.Filter property default value indicates two URL filters for the dialog box: one for XML transform files (*.xsl) and another for all files (*.*).

To specify a custom filter string, derive a class from the System.Web.UI.Design.XslTransformFileEditor class, and then override the XslTransformFileEditor.Filter property to return the custom filter string.

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.

Following is an example of a filter string that contains two filter options:

"XML Transform Files (*.xsl)|*.xsl|All Files (*.*)|*.*".

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

"Custom XML Transform Files (*.xs1; *.xs2)|*.xs1;*.xs2|All Files (*.*)|*.*".

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0