Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontCollection Class / RegisterDirectory Method
Path to the source directory with fonts.
Specifies if all the registered fonts should be added to the fallback font collection.

In This Topic
    RegisterDirectory Method
    In This Topic
    Appends all fonts (*.ttf, *.otf, *.ttc files) from the specified folder to the FontCollection.
    Syntax
    'Declaration
     
    Public Function RegisterDirectory( _
       ByVal folderPath As System.String, _
       Optional ByVal addToFallbacks As System.Boolean _
    ) As System.Integer
    public System.int RegisterDirectory( 
       System.string folderPath,
       System.bool addToFallbacks
    )

    Parameters

    folderPath
    Path to the source directory with fonts.
    addToFallbacks
    Specifies if all the registered fonts should be added to the fallback font collection.

    Return Value

    The number of registered fonts.
    See Also