ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.DirectWrite Namespace / TextFormat Class / Create Method / Create(Factory,String,FontCollection,FontWeight,FontStyle,FontStretch,Single) Method
an instance of Factory
An array of characters that contains the name of the font family
A pointer to a font collection object. When this is NULL, indicates the system font collection.
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,FontCollection,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 String, _
       ByVal fontCollection As FontCollection, _
       ByVal fontWeight As FontWeight, _
       ByVal fontStyle As FontStyle, _
       ByVal fontStretch As FontStretch, _
       ByVal fontSize As Single _
    ) As TextFormat

    Parameters

    factory
    an instance of Factory
    fontFamilyName
    An array of characters that contains the name of the font family
    fontCollection
    A pointer to a font collection object. When this is NULL, indicates the system font collection.
    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