1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| ''' <summary>
''' Permet de recupérer le dictionnaire des polices installées sur le system
''' </summary>
''' <returns></returns>
''' <remarks></remarks>
Public Shared Function GetFontsList() As Dictionary(Of String, System.Drawing.FontFamily)
GetFontsList = Nothing
Dim Fonts As New System.Drawing.Text.InstalledFontCollection()
Dim Family() As System.Drawing.FontFamily = Fonts.Families
Dim Dico As New Dictionary(Of String, System.Drawing.FontFamily)
For i As Integer = Family.GetLowerBound(0) To Family.GetUpperBound(0)
Dico.Add(Family(i).Name, Family(i))
Next
Family = Nothing
Fonts = Nothing
Return Dico
End Function |
Partager