Share via


IXRTextBox::SetFontSource (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetFontSource(
    HANDLE hFile
) = 0;

Parameters

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

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

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.TextBox.FontSource

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBox
IXRTextBox::GetFontSource