Documents for PDF, .NET Edition Documentation
RegisterDirectory Method

GrapeCity.Documents.Common 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.
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

Reference

FontCollection Class
FontCollection Members