Share via


IXRInline::SetForeground (Windows Embedded CE 6.0)

1/6/2010

This method sets the brush that paints the text in this inline element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetForeground(
    IXRBrush* pForeground
) = 0;

Parameters

  • pForeground
    [in] Pointer to an IXRBrush-derived object that paints the text in this inline element.

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pForeground is not a Silverlight object.

Remarks

The value of pForeground specifies the brush for the displayed text. A brush can represent a solid color, a linear or radial gradient, or an image.

When you animate the foreground text in Microsoft Silverlight 2 XAML, you must use indirect targeting syntax. For more information about how to set the foreground Brush in Silverlight 2 XAML, see the Microsoft Silverlight 2 documentation.

.NET Framework Equivalent

System.Windows.Documents.Inline.Foreground

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRInline
IXRInline::GetForeground