ZennoLab Assemblies Documentation
GetFonts Method
Example 
ZennoLab.CommandCenter Namespace > Instance Class : GetFonts Method
Returns a collection of current visible fonts.
Syntax
public IEnumerable<string> GetFonts()

Return Value

Type: System.Collections.IEnumerable

Collection of fonts.

Example
The following example uses the GetFonts method.
// get fonts
var fonts = instance.GetFonts();
// name of first font
string name = "";
if (fonts != null)
{
    var fontList = fonts.ToList();
    if(fontList.Count > 0)
    {
        name = fontList[0];
    }
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Instance Class
Instance Members