FileDialog.Filter Property

The filter string representing a collection of extensions allowed by the dialog.


Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public string Filter { get; set; }

Property Value

String
The required format for this string is a collection of one or more filter labels (representing the text the user will see in the Files of Type pulldown) plus an associated file matching string separated by the '|' character. Some examples of valid filter strings:

Exceptions

ExceptionCondition
ArgumentException When setting this property: The input filter string does not meet the minimal requirements for a valid filter string.
ArgumentNullException When setting this property: A non-optional argument was null

See Also

Reference

FileDialog Class
Autodesk.Revit.UI Namespace