• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpDialogs
      • SharpDialogFilter
      • SharpDialogHelpers
      • SharpFileOpenDialog
      • SharpFileSaveDialog
      • SharpFolderBrowserDialog
      • SharpInputBox
      • SharpProgressDialog
    • SharpDialogs.Wpf
      • SharpFileOpenDialogWpf
      • SharpFileSaveDialogWpf
      • SharpFolderBrowserDialogWpf
      • SharpProgressDialogWpf
    • SharpWpfAboutBox
      • SharpAboutBox
      • SharpAppProperties

    Class SharpDialogFilter

    A files filter for the dialogs.

    Inheritance
    object
    SharpDialogFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: SharpDialogs
    Assembly: SharpDialogs.dll
    Syntax
    public sealed class SharpDialogFilter

    Constructors

    | Edit this page View Source

    SharpDialogFilter(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
    | Edit this page View Source

    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 Source

    Extensions

    Gets the extensions of the filter.

    Declaration
    public IReadOnlyList<string> Extensions { get; }
    Property Value
    Type Description
    IReadOnlyList<string>
    | Edit this page View Source

    Name

    Gets the name of the filter.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    ParseWindowsFilter(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.

    | Edit this page View Source

    ToString()

    Returns the filter as a string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright Jérémy Ansel (c) 2025