This creates a font based on the FontData settings and the passed in base font.
'Declaration
Public Overloads Function CreateFont( _
ByVal As Font _
) As Font
public Font CreateFont(
Font
)
Parameters
- baseFont
- This is the font used to supply default values for the created font. This parameter can not be null.
Return Value
The created font. It is the caller's responsibility to dispose of this font when no longer needed. Note: if no FontData properties have been set or the property values are the same as the base font then this method will return null.
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