Skip to main content
All docs
V23.2

DXFontRepository.Clear() Method

Removes all fonts from the font repository.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v23.2.dll

NuGet Package: DevExpress.Drawing

Declaration

public void Clear()

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();
See Also