IXRGeometryCollection (Windows Embedded CE 6.0)
1/6/2010
This class represents a collection of IXRGeometry objects.
Syntax
class IXRGeometryCollection : public IXRCollection<IXRGeometry*, IXRDependencyObject*>
Methods
IXRGeometryCollection inherits the methods from the template class IXRCollection<In_T, Out_T>. It uses In_T parameters of type IXRGeometry*, and uses Out_T parameters of type IXRDependencyObject*.
Remarks
For more information about how to define this collection in the source XAML for your application, see the Microsoft Silverlight 2 documentation.
An IXRGeometryCollection object is not itself a composite geometry, but is used by the IXRGeometryGroup class to store IXRGeometry objects.
You can obtain a pointer to this collection by calling the method IXRGeometryGroup::GetChildren. 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, as follows:
- Use the IXRApplication::CreateObject(IID,Object) method to create an empty IXRGeometryCollection derived object.
- Use CreateObject to create multiple IXRGeometry derived objects.
- Add each IXRGeometry derived object to the IXRGeometryCollection collection by calling the inherited method IXRCollection<In_T, Out_T>::Add.
- Set the new collection for an IXRGeometryGroup object by calling its method IXRGeometryGroup::SetChildren.
You can also define a geometry collection in 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
IXRGeometryCollection
.NET Framework Equivalent
System.Windows.Media.GeometryCollection
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |