property FileType.BackColor as Color

Retrieves or sets a value that indicates the background color for the files that match the FileType's pattern.

TypeDescription
Color A color expression that defines the background color used to paint the items that match the Pattern.

Use the BackColor and ForeColor properties to color your items that match a pattern. The Apply method applies the changes to the current list.  Use the BrowseFolderPath property to specify the path to the browsed folder. Use the BackColor property to specify the control's background color. Use the BackColor property to specify the file/folder's background color.

The following VB sample changes the background color for the exe files:

With ExFileView1.FileTypes
    .Add("*.exe").BackColor = vbRed
    .Apply
End With

The following C++ sample changes the background color for the exe files:

#include "FileType.h"
#include "FileTypes.h"
CFileType fileType = m_fileview.GetFileTypes().Add("*.exe");
fileType.SetBackColor( RGB(255,0,0) );
fileType.Apply();

The following VB.NET sample changes the background color for the exe files:

With AxExFileView1.FileTypes.Add("*.exe")
    .BackColor = ToUInt32(Color.Red)
    .Apply()
End With

where the ToUInt32 function converts a Color expression to OLE_COLOR type,

Shared Function ToUInt32(ByVal c As Color) As UInt32
    Dim i As Long
    i = c.R
    i = i + 256 * c.G
    i = i + 256 * 256 * c.B
    ToUInt32 = Convert.ToUInt32(i)
End Function

The following C# sample changes the background color for the exe files:

EXFILEVIEWLib.FileType fileType = axExFileView1.FileTypes.Add("*.exe");
fileType.BackColor = ToUInt32(Color.Red);
fileType.Apply();

where the ToUInt32 function converts a Color expression to OLE_COLOR type,

private UInt32 ToUInt32(Color c)
{
	long i;
	i = c.R;
	i = i + 256 * c.G;
	i = i + 256 * 256 * c.B;
	return Convert.ToUInt32(i);
}

The following VFP sample changes the background color for the exe files:

With thisform.ExFileView1.Add("*.exe")
	.BackColor = RGB(255,0,0)
	.Apply()
EndWith