ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 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 String, _
       ByVal fontCollection As FontCollection, _
       ByVal fontWeight As FontWeight, _
       ByVal fontStyle As FontStyle, _
       ByVal fontStretch As FontStretch, _
       ByVal fontSize As Single, _
       ByVal localeName As String _
    ) As TextFormat

    Parameters

    fontFamilyName
    fontCollection
    fontWeight
    fontStyle
    fontStretch
    fontSize
    localeName
    See Also