Поделиться через


IXRShape::SetStroke (Compact 2013)

3/28/2014

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 3 documentation.

.NET Framework Equivalent

System.Windows.Shapes.Shape.Stroke

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRShape
IXRShape::GetStroke