IXRStroke (Compact 2013)
3/28/2014
This class represents a collection of points that constitutes a stroke.
Syntax
class IXRStroke : public IXRDependencyObject
Inheritance Hierarchy
IXRStroke
Methods
In addition to the methods inherited from IXRDependencyObject, this class contains the following methods.
Name |
Description |
---|---|
Retrieves the bounding box for the IXRStroke object. |
|
Retrieves the properties of the stroke, such as Height, Width, Color, or OutlineColor. |
|
Retrieves the stylus points of the IXRStroke. |
|
Indicates whether a specified IXRStylusPointCollection intersects with this IXRStroke object. |
|
Sets the properties of the stroke, such as Height, Width, Color, or OutlineColor. |
|
Sets the stylus points of the IXRStroke. |
Thread Safety
Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.
Remarks
An IXRStroke object contains information about the position, shape, and appearance of the stroke. An IXRStroke contains a collection of IXRStylusPoint objects generated by an input device such as a stylus or mouse. You can create and manipulate IXRStroke objects and display them on an IXRInkPresenter object.
When you create a class instance, use an IXRStrokePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.
You can also define an IXRStroke object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the Stroke Class on MSDN.
.NET Framework Equivalent
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |