PrivateFontCollection.AddFontFile

PrivateFontCollection.AddFontFile method

Adds a font from the specified file to this PrivateFontCollection.

public void AddFontFile(string filename)
ParameterTypeDescription
filenameStringA String that contains the file name of the font to add.

Exceptions

exceptioncondition
ArgumentNullExceptionFile name should not be null or empty.
FileNotFoundExceptionThe specified font is not supported or the font file cannot be found.

See Also