Skip to main content
All docs
V25.1
  • DXFontRepository.Clear() Method

    Removes all fonts from the font repository.

    Namespace: DevExpress.Drawing

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