次の方法で共有


IXRPathSegmentCollection (Windows Embedded CE 6.0)

1/6/2010

This class represents a collection of IXRPathSegment objects that can be accessed individually by index.

Syntax

class IXRPathSegmentCollection : public IXRCollection<IXRPathSegment*, IXRDependencyObject*>

Methods

IXRPathSegmentCollection inherits the methods from the template class IXRCollection<In_T, Out_T>. It uses In_T parameters of type IXRPathSegment*, and uses Out_T parameters of type IXRDependencyObject*.

Remarks

IXRPathSegmentCollection is used by the IXRPathFigure class to store IXRPathSegment information. This collection describes the geometric segments that together define the geometry of an IXRPathFigure object.

You can obtain a pointer to this collection by calling IXRPathFigure::GetSegments. Then, you can use the methods inherited from IXRCollection<In_T, Out_T> to add items, remove items, or retrieve items. You can also clear the complete collection by calling the inherited method IXRCollection<In_T, Out_T>::Clear.

You can also create a new collection. To do this, use the IXRApplication::CreateObject(IID,Object) method to create an empty IXRPathSegmentCollection object. Then, you can use CreateObject to create multiple IXRPathSegment objects that each represent the geometric segments that together define the geometry of an IXRPathFigure object. Next, you can add each IXRPathSegment object to the IXRPathSegmentCollection collection by calling the inherited method IXRCollection<In_T, Out_T>::Add. And finally, you can set the new collection for an IXRPathFigure by calling IXRPathFigure::SetSegments.

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

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRPathSegmentCollection

.NET Framework Equivalent

System.Windows.Media.PathSegmentCollection

Requirements

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

See Also

Reference

Classes for Collection Management