Skip to main content
A newer version of this page is available.
All docs
V21.2
.NET Framework 4.5.2+

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

public void Clear()

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