C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / TextFormat Class / Create Method / Create(Factory,String,FontWeight,FontStyle,Single) Method
an instance of Factory
An array of characters that contains the name of the font family
A value that indicates the font weight for the text object created by this method.
A value that indicates the font style for the text object created by this method.
The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

In This Topic
Create(Factory,String,FontWeight,FontStyle,Single) Method
In This Topic
Creates a text format object used for text layout with normal stretch.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal factory As Factory, _
   ByVal fontFamilyName As System.String, _
   ByVal fontWeight As FontWeight, _
   ByVal fontStyle As FontStyle, _
   ByVal fontSize As System.Single _
) As TextFormat
 

Parameters

factory
an instance of Factory
fontFamilyName
An array of characters that contains the name of the font family
fontWeight
A value that indicates the font weight for the text object created by this method.
fontStyle
A value that indicates the font style for the text object created by this method.
fontSize
The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.
See Also