System.LastFontIndex

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aSystem.LastFontIndex

New in 2019r2

Supported for all project types and targets.

The index number of the last font installed on the user’s computer.

Examples

This example populates a top-level menu called FontMenu with the names of the installed fonts:

For i As Integer = 0 To System.LastFontIndex
FontMenu.AddMenu(New MenuItem(System.FontAt(i)))
Next

See Also

System.FontAt and System.FontCount functions.