ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / TextFormat Class / Create Method / Create(Factory,String,FontWeight,FontStyle,FontStretch,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.
A value that indicates the font stretch 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,FontStretch,Single) Method
    In This Topic
    Creates a text format object used for text layout.
    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 fontStretch As FontStretch, _
       ByVal fontSize As System.Single _
    ) As TextFormat
    public static TextFormat Create( 
       Factory factory,
       System.string fontFamilyName,
       FontWeight fontWeight,
       FontStyle fontStyle,
       FontStretch fontStretch,
       System.float fontSize
    )

    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.
    fontStretch
    A value that indicates the font stretch 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