ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / Factory Class / CreateTextFormat Method

In This Topic
    CreateTextFormat Method
    In This Topic
    HRESULT IDWriteFactory::CreateTextFormat([In] const wchar_t* fontFamilyName,[In, Optional] IDWriteFontCollection* fontCollection,[In] DWRITE_FONT_WEIGHT fontWeight,[In] DWRITE_FONT_STYLE fontStyle,[In] DWRITE_FONT_STRETCH fontStretch,[In] float fontSize,[In] const wchar_t* localeName,[Out, Fast] IDWriteTextFormat** textFormat)
    Syntax
    'Declaration
     
    Public Function CreateTextFormat( _
       ByVal fontFamilyName As System.String, _
       ByVal fontCollection As FontCollection, _
       ByVal fontWeight As FontWeight, _
       ByVal fontStyle As FontStyle, _
       ByVal fontStretch As FontStretch, _
       ByVal fontSize As System.Single, _
       ByVal localeName As System.String _
    ) As TextFormat
    public TextFormat CreateTextFormat( 
       System.string fontFamilyName,
       FontCollection fontCollection,
       FontWeight fontWeight,
       FontStyle fontStyle,
       FontStretch fontStretch,
       System.float fontSize,
       System.string localeName
    )

    Parameters

    fontFamilyName
    fontCollection
    fontWeight
    fontStyle
    fontStretch
    fontSize
    localeName
    See Also