Class FilterByExtension
Class for custom filtering.
Inheritance
System.Object
FilterByExtension
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class FilterByExtension : Object, 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
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 |