IXRLine (Compact 2013)
3/28/2014
This class draws a straight line between two points.
Syntax
class IXRLine : public IXRShape
Inheritance Hierarchy
IXRLine
Methods
Method |
Description |
---|---|
Retrieves the x-coordinate of the IXRLine starting point. |
|
Retrieves the x-coordinate of the IXRLine endpoint. |
|
Retrieves the y-coordinate of the IXRLine starting point. |
|
Retrieves the y-coordinate of the IXRLine endpoint. |
|
Sets the x-coordinate of the IXRLine starting point. |
|
Sets the x-coordinate of the IXRLine endpoint. |
|
Sets the y-coordinate of the IXRLine starting point. |
|
Sets the y-coordinate of the IXRLine endpoint. |
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
Basic shapes such as a line do not support a Bézier curve. To draw a Bézier curve, you can use an IXRPath and set the data to one of the Bézier geometries.
When you create a class instance, use an IXRLinePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.
You can also define a line 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 Line Class on MSDN.
.NET Framework Equivalent
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |