次の方法で共有


IXRLineSegment (Windows Embedded CE 6.0)

1/6/2010

This class represents a line drawn between two points that can be part of an IXRPathFigure within IXRPath data.

Syntax

class IXRLineSegment : public IXRPathSegment

Methods

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

Name Description

IXRLineSegment::SetPoint

Sets the endpoint of a line segment.

IXRLineSegment::GetPoint

Retrieves the endpoint of a line segment.

Remarks

You can use an IXRPathFigure object to create composite shapes by using IXRLineSegment objects and other segments.

The IXRLineSegment class does not contain a property for the starting point of the line. The starting point of the line is the endpoint of the previous segment or the starting point of the IXRPathFigure if no other segments exist.

You can generate a simple line by using IXRLine. Use IXRLineSegment to draw a line within a more complex geometry group.

You can also define a IXRLineSegment object 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 element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

  IXRPathSegment

    IXRLineSegment

.NET Framework Equivalent

System.Windows.Media.LineSegment

Requirements

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

See Also

Reference

Classes for Visual Appearance and Behavior