Share via


IXRTextBlock::GetFontSource (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetFontSource(
    HANDLE* pHFile
) = 0;

Parameters

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

    The font file specifies a raw TrueType file (.ttf or .ttc).

Return Value

Returns an HRESULT that indicates success or failure.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.FontSource

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::SetFontSource