property FileType.Folder as Boolean

Retrieves or sets a value indicating whether the changes are applied only for folder objects.

TypeDescription
Boolean A boolean expression indicating whether the changes are applied only for folder objects.

By default, the Folder property is False. If the Folder property is True, the FileType' attributes are applied only for folders, and if the Folder is False the FileType' attributes are applied only for files. The Apply method applies the changes to the current list.  Use the BrowseFolderPath property to specify the path to the browsed folder.

The following VB sample bolds all folders:

With ExFileView1.FileTypes
    With .Add("*")
        .Folder = True
        .Bold = True
    End With
    .Apply
End With

The following screen shot bolds all files ( Folder property is False )

The following C++ sample bolds all folders:

#include "FileType.h"
#include "FileTypes.h"
CFileType fileType = m_fileview.GetFileTypes().Add("*");
fileType.SetFolder( TRUE );
fileType.SetBold( TRUE );
fileType.Apply();

The following VB.NET sample bolds all folders:

With AxExFileView1.FileTypes.Add("*")
    .Folder = True
    .Bold = True
    .Apply()
End With

The following C# sample bolds all folders:

EXFILEVIEWLib.FileType fileType = axExFileView1.FileTypes.Add("*");
fileType.Folder = true;
fileType.Bold = true;
fileType.Apply();

The following VFP sample bolds all folders:

With thisform.ExFileView1.Add("*")
	.Folder = .t.
	.Bold = .t.
	.Apply()
EndWith