property File.Bold as Boolean

Specifies whether the file should appear in bold.

TypeDescription
Boolean A boolean expression that indicates whether the file should appear in bold.

Use the Bold property to bold files and folders. Use the Font property to specify the control's font. Use the Get property to retrieve the items collection. Use the BrowseFolderPath property to specify the path to the browsed folder.

The following VB sample bolds the cpp and h files in the browsed folder:

Dim fs As Files, f As File
Set fs = ExFileView1.Get(AllItems).Get("*.cpp *.h")
For Each f In fs
    f.Bold = True
Next

The Bold attribute is lost if the control is refreshed, or if the Apply property is invoked. For instance, you can add a new FileType object that 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 in the browsed folder:

CFiles files = m_fileview.GetGet( 1 /*AllItems*/ ).GetGet( "*.cpp *.h" );
for ( long i = 0; i < files.GetCount(); i++ )
	files.GetItem( COleVariant( i ) ).SetBold( TRUE );

The Bold attribute is lost if the control is refreshed, or if the Apply property is invoked. For instance, you can add a new FileType object that 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 in the browsed folder:

With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.AllItems).Get("*.cpp *.h")
    Dim i As Integer
    For i = 0 To .Count - 1
        .Item(i).Bold = True
    Next
End With

The Bold attribute is lost if the control is refreshed, or if the Apply property is invoked. For instance, you can add a new FileType object that 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 in the browsed folder:

EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.AllItems).get_Get("*.cpp *.h");
for (int i = 0; i < files.Count; i++)
	files[i].Bold = true;

The Bold attribute is lost if the control is refreshed, or if the Apply property is invoked. For instance, you can add a new FileType object that 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 in the browsed folder:

With thisform.ExFileView1.Get( 1 ).Get("*.cpp *.h")
	local i
	for i = 0 to .Count - 1
		with .Item(i)
			.Bold = .t.
		endwith
	next
EndWith

The Bold attribute is lost if the control is refreshed, or if the Apply property is invoked. For instance, you can add a new FileType object that bolds the cpp and h files:

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