IXRTextBlock::SetFontStyle (Windows Embedded CE 6.0)
1/6/2010
This method sets the font style for the text in this text block.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetFontStyle(
XRFontStyle FontStyle
) = 0;
Parameters
- FontStyle
[in] XRFontStyle enumerated type that describes the new 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 FontStyle 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 |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |