DXFontRepository.Clear() Method
Removes all fonts from the font repository.
Namespace: DevExpress.Drawing
Assembly: DevExpress.Drawing.v24.2.dll
NuGet Package: DevExpress.Drawing
#Declaration
#Remarks
The example below demonstrates how to clear the font repository. Use the IsEmpty property to check whether the font repository contains fonts.
using DevExpress.Drawing;
// ...
// Check whether the font repository is empty.
if (!DXFontRepository.Instance.IsEmpty)
// If false, clear the font repository.
DXFontRepository.Instance.Clear();