Skip to main content
A newer version of this page is available. .
All docs
V23.1

DXFontRepository.Clear() Method

Removes all fonts from the font repository.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v23.1.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