次の方法で共有


IXRTextBlock::GetFontStyle (Compact 2013)

3/28/2014

This method retrieves the font style for the text in this text block.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetFontStyle(
    XRFontStyle* pFontStyle
) = 0;

Parameters

  • pFontStyle
    Pointer to an XRFontStyle enumerated type that describes the style in which the text is rendered.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The characters in an italic font style are truly slanted and appear as they were designed. They are not simulated by performing a shear transformation on the characters from a normal font.

Note

The value of pFontStyle might not be used for the font style during rendering, because of font fallback. For example, if the font style XRFontStyle_Italic is specified, but XRFontStyle_Normal is the only font style available, the value of pFontStyle is still AXFonStyle_Italic.

.NET Framework Equivalent

System.Windows.Controls.TextBlock.FontStyle

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBlock
IXRTextBlock::SetFontStyle