Share via


IXRTextElement::SetTextDecorations (Compact 2013)

3/28/2014

This method sets the decorations that are applied to the text inside this text element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTextDecorations(
  __in XRTextDecorationCollection TextDecorations
) = 0;

Parameters

  • TextDecorations
    [in] Decorations to apply to the text. The only valid values are XRDecorationsUnderline and XRDecorationsNone (default).

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

In XAML for Windows Embedded, the only text decoration is underlined text.

.NET Framework Equivalent

System.Windows.Documents.Inline.TextDecorations

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextElement
IXRTextElement::GetTextDecorations
XRTextDecorationCollection