次の方法で共有


IXRColumnDefinitionCollection (Windows Embedded CE 6.0)

1/6/2010

This class provides access to a strongly typed collection of IXRColumnDefinition objects.

Syntax

class IXRColumnDefinitionCollection : public IXRCollection<IXRColumnDefinition*, IXRDependencyObject*>

Methods

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

Remarks

If you create a new IXRColumnDefinition object in C++ code by using IXRApplication::CreateObject(IID,Object), you must insert it into the visual tree by adding it to an IXRColumnDefinitionCollection in the visual tree.

You can obtain a pointer to this collection by calling IXRGrid::GetColumnDefinitions. 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 define a column definition 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.

The XAML implicit collection syntax at this Web site shows how to populate items in XAML for the IXRColumnDefinitionCollection that is held by the Grid.ColumnDefinitions property.

Inheritance Hierarchy

IXRDependencyObject

    IXRCollection<In_T, Out_T>

        IXRColumnDefinitionCollection

.NET Framework Equivalent

System.Windows.Controls.ColumnDefinitionCollection

Requirements

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

See Also

Reference

Classes for Collection Management