Compartilhar via


IXRShape::SetFill (Compact 2013)

3/28/2014

This method sets the Brush that specifies how to paint the interior of this shape.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetFill(
    IXRBrush *pFill
) = 0; 

Parameters

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

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Setting pFill for a line (IXRLine or IXRPolyline) has no effect, because a line has no interior region. For line elements, use the IXRShape::SetStroke or IXRShape::SetStrokeThickness methods instead.

The area where the value of pFill applies to an inheriting IXRPath object is potentially influenced by the XRFillRule enumerated value associated with its geometry data. For more information, see the derived classes of IXRGeometry.

If pFill is null or is not specified, there is no hit-testable region within the object.

For more information about how to set the fill for a line element in the source XAML, see the Microsoft Silverlight 3 documentation.

.NET Framework Equivalent

System.Windows.Shapes.Shape.Fill

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRShape
IXRShape::GetFill