Back to Devexpress

DXFontRepository.Clear() Method

corelibraries-devexpress-dot-drawing-dot-dxfontrepository-1a33a60e.md

latest1.5 KB
Original Source

DXFontRepository.Clear() Method

Removes all fonts from the font repository.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public void Clear()
vb
Public Sub Clear

Remarks

The example below demonstrates how to clear the font repository. Use the IsEmpty property to check whether the font repository contains fonts.

csharp
using DevExpress.Drawing;
// ...

// Check whether the font repository is empty.
if (!DXFontRepository.Instance.IsEmpty)
    // If false, clear the font repository.
    DXFontRepository.Instance.Clear();
vb
Imports DevExpress.Drawing
' ...

' Check whether the font repository is empty.
If Not DXFontRepository.Instance.IsEmpty Then
    ' If false, clear the font repository.
    DXFontRepository.Instance.Clear()
End If

See Also

DXFontRepository Class

DXFontRepository Members

DevExpress.Drawing Namespace