Share via


IXRStylusPointCollection (Windows Embedded CE 6.0)

1/6/2010

This class represents a collection of related IXRStylusPoint objects.

Syntax

class IXRStylusPointCollection : public IXRCollection<IXRStylusPoint*, IXRDependencyObject*>

Methods

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

Remarks

The IXRStylusPointCollection keeps track of the IXRStylusPoint objects that define the geometry of the IXRStroke object. It provides access to the set of x,y coordinates that define the ink stroke drawn on-screen.

You can obtain a pointer to this collection by calling IXRStroke::GetStylusPoints, or by handling a mouse event and extracting its event data from the XRMouseEventArgs structure.

An IXRStylusPointCollection can belong to more than one IXRStroke object. However, the only way to do this is by retrieving an existing value by calling IXRStroke::GetStylusPoints and assigning it to another stroke object by calling IXRStroke::SetStylusPoints.

It is possible to define a stylus-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. However, pre-populating an IXRInkPresenter with strokes and stylus points is not a common technique; usually you start with a blank IXRStrokeCollection and capture strokes from user input into the collection with run-time code.

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRStylusPointCollection

.NET Framework Equivalent

System.Windows.Input.StylusPointCollection

Requirements

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

See Also

Reference

Classes for Collection Management