method FileTypes.Apply ()

Applies the changes to the current list.

TypeDescription

The Apply method applies all the changes to the current list. If the Apply method is not called, the changes will be reflected as soon as the user browses a new folder, or refresh the control. Use the BrowseFolderPath property to specify the browsed folder. The Add method does not invoke the Apply method. Use the Refresh method to refresh the control.

The following VB sample makes the cpp and h files appear in italic:

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

The following C++ sample makes the cpp and h files appear in italic:

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

The following VB.NET sample makes the cpp and h files appear in italic:

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

The following C# sample makes the cpp and h files appear in italic:

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

The following VFP sample makes the cpp and h files appear in italic:

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