Share via


IXRPolyline (Compact 2013)

3/28/2014

This class draws a series of connected straight lines.

Syntax

class IXRPolyline : public IXRShape

Inheritance Hierarchy

IXRDependencyObject

  IXRUIElement

    IXRFrameworkElement

      IXRShape

        IXRPolyline

Methods

In addition to the methods inherited from IXRShape, this class contains the following methods.

Name

Description

IXRPolyline::GetFillRule

Retrieves a value that indicates how the interior is filled by the shape.

IXRPolyline::GetPoints

Retrieves a collection that contains the vertices of a shape.

IXRPolyline::SetFillRule

Sets a value that specifies how the interior is filled by the shape.

IXRPolyline::SetPoints

Sets a collection that contains the vertices of a shape.

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

This object resembles IXRPolygon, except that IXRPolyline can be an open-ended shape. You can achieve the same visual result by overlapping multiple IXRLine objects.

IXRPolyline must contain a minimum of 2 points to render.

When you create a class instance, use an IXRPolylinePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define an IXRPolyline 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 this Polyline Class.

.NET Framework Equivalent

System.Windows.Shapes.Polyline

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management