IXRArcSegment (Compact 2013)

3/28/2014

This class represents an elliptical arc between two points.

Syntax

class IXRArcSegment : public IXRPathSegment

Inheritance Hierarchy

IXRDependencyObject

  IXRPathSegment

    IXRArcSegment

Methods

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

Name

Description

IXRArcSegment::GetIsLargeArc

Retrieves a value that indicates whether the arc is more than 180 degrees.

IXRArcSegment::GetPoint

Retrieves the endpoint of the elliptical arc.

IXRArcSegment::GetRotationAngle

Retrieves the degrees by which the object rotates the ellipse around the x-axis.

IXRArcSegment::GetSize

Retrieves the x and y-radius of the arc as an XRSize structure.

IXRArcSegment::GetSweepDirection

Retrieves a value that specifies whether the object draws the arc clockwise or counterclockwise.

IXRArcSegment::SetIsLargeArc

Sets a value that specifies whether the arc is more than 180 degrees.

IXRArcSegment::SetPoint

Sets the endpoint of the elliptical arc.

IXRArcSegment::SetRotationAngle

Sets the degrees by which the object rotates the ellipse around the x-axis.

IXRArcSegment::SetSize

Sets the x and y-radius of the arc as an XRSize structure.

IXRArcSegment::SetSweepDirection

Sets a value that specifies whether the object draws the arc clockwise or counterclockwise.

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

Use an IXRPathFigure object to store IXRArcSegment and other segments.

An elliptical arc is defined by the following properties:

  • starting point and endpoint
  • x and y-radius
  • x-axis rotation factor
  • whether the arc is more or less than 180 degrees
  • the direction in which the arc is drawn

The IXRArcSegment class does not contain a property for the starting point of the arc. The starting point of the arc is the current point of the IXRPathFigure that contains the IXRArcSegment.

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

You can also define an IXRArcSegment object in 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 ArcSegment Class on MSDN.

.NET Framework Equivalent

System.Windows.Media.ArcSegment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance