Class SharpDialogFilter
A files filter for the dialogs.
Inherited Members
Namespace: SharpDialogs
Assembly: SharpDialogs.dll
Syntax
public sealed class SharpDialogFilter
Constructors
| Edit this page View SourceSharpDialogFilter(string, IEnumerable<string>)
Creates a dialog file filter.
Declaration
public SharpDialogFilter(string name, IEnumerable<string> extensions)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The names. |
| IEnumerable<string> | extensions | The extensions. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| ArgumentOutOfRangeException |
SharpDialogFilter(string, params string[])
Creates a dialog file filter.
Declaration
public SharpDialogFilter(string name, params string[] extensions)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name. |
| string[] | extensions | The extensions. |
Properties
| Edit this page View SourceExtensions
Gets the extensions of the filter.
Declaration
public IReadOnlyList<string> Extensions { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Name
Gets the name of the filter.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceParseWindowsFilter(string)
Creates filters from a string.
Declaration
public static IReadOnlyList<SharpDialogFilter> ParseWindowsFilter(string windowsFilter)
Parameters
| Type | Name | Description |
|---|---|---|
| string | windowsFilter | The filter string. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<SharpDialogFilter> | Returns the filters. |
ToString()
Returns the filter as a string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |