OpenSaveDialogFormFilter Property

Gets or sets the string which defines a filter for displayed files.

Definition

Namespace: BeeMobile.OpenSaveDialog
Assembly: BeeMobile.OpenSaveDialog.NET48 (in BeeMobile.OpenSaveDialog.NET48.dll) Version: 4.8.1.3
C#
public virtual string Filter { get; set; }

Property Value

String

Remarks

The filter can be defined in two possible formats:

1. set of wildcard masks delimited by | (pipe character)

2. "|" delimited pairs of label and a corresponding wildcard. label1|wildcard1|label2|wildcard2|...|labelN|wildcardN

The second variant is only for compatibility with OpenFileDialog/SaveFileDialog. If you assign a string (which is in the second format) to Filter, it will be automatically converted to a string in format 1 (by removing all the labels and leaving only the wildcard masks).

Filter string causes OpenSaveDialog to display on those files which match at least one wildcard mask in the Filter string.

The default value is *.* which means all files. If you wish not to display any files, put an empty string to Filter.

See Also