WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FilterByExtension

    Show / Hide Table of Contents

    Class FilterByExtension

    Class for custom filtering.

    Inheritance
    System.Object
    FilterByExtension
    Implements
    IFolderFilter
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [Guid("3766C955-DA6F-4fbc-AD36-311E342EF180")]
    [ComVisible(true)]
    public class FilterByExtension : IFolderFilter

    Constructors

    FilterByExtension()

    Declaration
    public FilterByExtension()

    Properties

    ValidExtension

    Gets or sets the valid extension.

    Declaration
    public string[] ValidExtension { get; set; }
    Property Value
    Type Description
    System.String[]

    The valid extension.

    Methods

    GetEnumFlags(Object, IntPtr, IntPtr, out UInt32)

    Allows a client to specify which classes of objects in a Shell folder should be enumerated.

    Declaration
    [CLSCompliant(false)]
    public int GetEnumFlags(object psf, IntPtr pidlFolder, IntPtr phwnd, out uint pgrfFlags)
    Parameters
    Type Name Description
    System.Object psf

    A pointer to the folder's IShellFolder interface.

    System.IntPtr pidlFolder

    The folder's PIDL.

    System.IntPtr phwnd

    A pointer to the host's window handle.

    System.UInt32 pgrfFlags

    One or more SHCONTF values that specify which classes of objects to enumerate.

    Returns
    Type Description
    System.Int32

    int type pgrfFlags

    ShouldShow(Object, IntPtr, IntPtr)

    Allows a client to specify which individual items should be enumerated. Note: The host calls this method for each item in the folder. Return S_OK (0), to have the item enumerated. Return S_FALSE (1) to prevent the item from being enumerated.

    Declaration
    public int ShouldShow(object psf, IntPtr pidlFolder, IntPtr pidlItem)
    Parameters
    Type Name Description
    System.Object psf

    A pointer to the folder's IShellFolder interface.

    System.IntPtr pidlFolder

    The folder's PIDL.

    System.IntPtr pidlItem

    The item's PIDL.

    Returns
    Type Description
    System.Int32

    int value of pidlItem

    Implements

    IFolderFilter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved