menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IFolderFilter - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IFolderFilter

    IFolder Filter

    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("9CC22886-DC8E-11d2-B1D0-00C04F8EEB3E")]
    [CLSCompliant(false)]
    public interface IFolderFilter

    Methods

    GetEnumFlags(Object, IntPtr, IntPtr, out UInt32)

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

    Declaration
    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 IntrPtr

    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.

    Declaration
    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

    Return S_OK (0), to have the item enumerated.
    Return S_FALSE (1) to prevent the item from being enumerated.

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