次の方法で共有


IXRDoubleCollection (Windows Embedded CE 6.0)

1/6/2010

This class represents a collection of float values.

Syntax

class IXRDoubleCollection : public IXRCollection<float, float>

Methods

IXRDoubleCollection inherits the methods from the template class IXRCollection<In_T, Out_T>. It uses In_T parameters of type float, and uses Out_T parameters of type float.

Remarks

To use this class for manipulating a set of dashes used to outline a shape object, you can use this collection class together with the methods IXRShape::GetStrokeDashArray and IXRShape::SetStrokeDashArray.

You can obtain a pointer to this collection by calling IXRShape::GetStrokeDashArray. 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 IXRDoubleCollection object. Then, you can use CreateObject to create multiple float values that each indicate the pattern of dashes and gaps used to outline a shape object. Next, you can add each float value to the IXRDoubleCollection collection by calling the inherited method IXRCollection<In_T, Out_T>::Add. And finally, you can set the new collection for an IXRShape by calling IXRShape::SetStrokeDashArray.

You can also define a double 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.

Note

This programming element includes "Double" in its name in order to maintain parity with the name of its equivalent XAML element in the source XAML markup. The name of this XAML element is generated by the Microsoft Expression Blend 2 IDE. However, in Silverlight, this object represents a float instead of a double.

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRDoubleCollection

.NET Framework Equivalent

System.Windows.Media.DoubleCollection

Requirements

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

See Also

Reference

Classes for Collection Management