[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontCollection.RegisterDirectory

RegisterDirectory Method

RegisterDirectory(string, bool)

Appends all fonts (*.ttf, *.otf, *.ttc files) from the specified folder to the FontCollection.

Declaration
public int RegisterDirectory(string folderPath, bool addToFallbacks = false)
Public Function RegisterDirectory(folderPath As String, Optional addToFallbacks As Boolean = False) As Integer
Parameters
Type Name Description
string folderPath

Path to the source directory with fonts.

bool addToFallbacks

Specifies if all the registered fonts should be added to the fallback font collection.

Returns
Type Description
int

The number of registered fonts.