次の方法で共有


IXRTextBlock::SetFontSource (Windows Embedded CE 6.0)

1/6/2010

This method sets the font source that is applied to this text block for displaying text content.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetFontSource(
    HANDLE hFile
) = 0;

Parameters

  • hFile
    [in] Handle to a font file that specifies the font source that is used to display content in this text block.

    The font file can specify a raw TrueType file (.ttf), an AC3 compressed font, or an Adobe OpenType/Compact Format Font (CFF).

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use CreateFile to obtain a handle to a font file to supply to this method.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.FontSource

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBlock
IXRTextBlock::SetFontFamily