Share via


IXRPointCollection (Windows Embedded CE 6.0)

1/6/2010

This collection represents a collection of XRPoint values that can be accessed individually by index.

Syntax

class IXRPointCollection : public IXRCollection<XRPoint*, XRPoint>

Methods

IXRPointCollection inherits the methods from the template class IXRCollection<In_T, Out_T>. It uses In_T parameters of type XRPoint*, and uses Out_T parameters of type XRPoint.

Remarks

To use this class for manipulating the x,y coordinates that define a shape or path object, you can use this collection class together with the methods IXRPolyLineSegment::GetPoints, IXRPolyLineSegment::SetPoints, IXRPolyBezierSegment::GetPoints, IXRPolyBezierSegment::SetPoints, IXRPolyQuadraticBezierSegment::GetPoints, IXRPolyQuadraticBezierSegment::SetPoints, IXRPolygon::GetPoints, IXRPolygon::SetPoints, IXRPolyline::GetPoints, and IXRPolyline::SetPoints.

You can obtain a pointer to this collection for an object by calling its method GetPoints. A list of these methods is available in the previous paragraph. Then, you can use the methods inherited from IXRCollection<In_T, Out_T> to add items, remove items, or retrieve items. You can also clear the complete collection by calling the inherited method IXRCollection<In_T, Out_T>::Clear.

You can also create a new collection. To do this, use the IXRApplication::CreateObject(IID,Object) method to create an empty IXRPointCollection object. Then, you can use CreateObject to create multiple XRPoint values that each indicate the pattern of dashes and gaps used to outline a shape object. Next, you can add each XRPoint value to the IXRPointCollection collection by calling the inherited method IXRCollection<In_T, Out_T>::Add. And finally, you can set the new collection for an object, such as IXRPolyLineSegment, IXRPolyBezierSegment, IXRPolyQuadraticBezierSegment, IXRPolygon, and IXRPolyline, by calling its method SetPoints.

You can also define a point collection in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this collection in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRPointCollection

.NET Framework Equivalent

System.Windows.Media.PointCollection

Requirements

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

See Also

Reference

Classes for Collection Management