Version

MaxCachedFonts Property

Gets or sets teh maximum number of fonts that can be cached during a single paint operation.
Syntax
'Declaration
 
Public Shared Property MaxCachedFonts As Integer
public static int MaxCachedFonts {get; set;}
Remarks

DrawCache caches fonts that are created during a paint so they can be re-used. This is done to make painting more efficient on the assumption that most paint operations only use a small number of different fonts, but that each font is used repeatedly. The default is 5, which is generally more than enough, but if a control is using a lot of different variations of fonts, then it may improve performance to increase this number.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also