Share via


IXRShape::SetStroke (Windows Embedded CE 6.0)

1/6/2010

This method sets a Brush that specifies how the outline of this shape object is painted.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetStroke(
    IXRBrush *pStroke
) = 0; 

Parameters

  • pStroke
    [in] Pointer to an object that derives from IXRBrush.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you use this method in the inheriting classes IXRLine and IXRPolyline, the value in pStroke defines the whole Brush-defined appearance for the object. For these inheriting classes, IXRShape::SetFill has no effect.

As an alternative approach, for information about how to set this value in the source XAML for your application, see the Microsoft Silverlight 2 documentation.

.NET Framework Equivalent

System.Windows.Shapes.Shape.Stroke

Requirements

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

See Also

Reference

IXRShape
IXRShape::GetStroke