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