Version

CreateFont Method

Creates a new Font instance which can be used to format text runs.
Syntax
'Declaration
 
Public Function CreateFont() As Font
public Font CreateFont()
Remarks

This method returns a font which contains a reference to this class, which enables the font to observe the Unit property setting, so that the developer can work in the unit of measure with which he is most comfortable.

The font returned from this method can be passed to the AddTextRun method to specify the font attributes for the run.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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