Partager via


IXRPath::SetData (Compact 2013)

3/28/2014

This method sets a geometry object that specifies the shape to be drawn with this path.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetData(
    IXRGeometry* pData
) = 0;

Parameters

  • pData
    [in] Pointer to an IXRGeometry derived object that describes the shape to be drawn with this path.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To draw simple shapes, use derived objects such as IXREllipseGeometry, IXRLineGeometry, and IXRRectangleGeometry.

To draw curves, arcs, or complex shapes, use the IXRPathGeometry object. To create a composite geometry, use IXRGeometryGroup.

You can specify either single geometries or multiple geometries. If you want to specify multiple geometries, the value of pData must be an IXRGeometryGroup whose children collection will contain each geometry defined as a child element.

.NET Framework Equivalent

System.Windows.Shapes.Path.Data

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPath
IXRPath::GetData