property ExFileView.ExcludeFilter as String

Specifies the pattern used to exclude files from the control's list, like '*.tmp *.log'.

TypeDescription
String A string expression that may contains wild cards like * or ?

Use the ExcludeFilter property to exclude files that match a pattern or multiple patterns from the current list. When the ExcludeFilter is set, the control automatically refreshes the current list, and applies the FileType attributes. Use the IncludeFilter property to include only the files that match a pattern. To remove a previous exclude filter you can use ("") empty string. By default, the ExcludeFilter property is "". The IncludeFolderFilter property specifies a wild characters expression that indicates the folders being included. The ExcludeFolderFilter property specifies a wild characters expression that indicates the folders being excluded. The patterns are separated by space character. Use the exHideFileExtensionsForKnownFileTypes option to show the file extensions in case your Windows Explorer,  the "Hide File Extensions For Known File Types" is checked. Use the Name property to specify the name of the file or the folder. Use the Folder property to specify whether the File object holds a file or a folder.

The following VB sample excludes the files with the extensions: 'bat', 'com' and 'sys':

With ExFileView1
    .ExcludeFilter = "*.bat *.sys *.com"
End With

The following C++ sample excludes the files with the extensions: 'bat', 'com' and 'sys':

m_fileview.SetExcludeFilter( "*.bat *.sys *.com" );

The following VB.NET sample excludes the files with the extensions: 'bat', 'com' and 'sys':

AxExFileView1.ExcludeFilter = "*.bat *.sys *.com"

The following C# sample excludes the files with the extensions: 'bat', 'com' and 'sys':

axExFileView1.ExcludeFilter = "*.bat *.sys *.com";

The following VFP sample excludes the files with the extensions: 'bat', 'com' and 'sys':

With thisform.ExFileView1
    .ExcludeFilter = "*.bat *.sys *.com"
EndWith