property ExFileView.FileTypes as FileTypes

Retrieves the control's FileTypes collection.

TypeDescription
FileTypes A FileTypes collection associated to the control.

Use the FileTypes property to access the control's FileType objects. Use the Add method to add new rules for the control's content. Use the Apply method to apply the rules. Use the Font property to specify the control's font. Use the ForeColor property to specify the control's foreground color. Use the BackColor property to specify the control's background color. Use the Get property to get the list of files and folders.

The following VB sample bolds the cpp and h files:

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

The following C++ sample bolds the cpp and h files:

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

The following VB.NET sample bolds the cpp and h files:

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

The following C# sample bolds the cpp and h files:

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

The following VFP sample bolds the cpp and h files:

With thisform.ExFileView1.FileTypes.Add("*.cpp *.h")
    .Bold = .t.
    .Apply()
EndWith