次の方法で共有


IXRGrid::GetColumnDefinitions (Windows Embedded CE 6.0)

1/6/2010

This method retrieves a collection of column definitions that are defined on this instance of IXRGrid.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetColumnDefinitions(
    IXRColumnDefinitionCollection **ppColumnDefinitions
) = 0;

Parameters

  • ppColumnDefinitions
    [out] Address of a pointer to an IXRColumnDefinitionCollection object that provides access to an ordered collection of IXRColumnDefinition objects.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To add columns to this grid object, you must populate its column collection. You can populate this collection by using methods on the IXRColumnDefinitionCollection object.

Or, you can define the elements in this collection in the source XAML that is parsed by the Silverlight-based application. You can populate this collection by using <Grid.ColumnDefinitions> implicit collection syntax. For information about the differences in Microsoft Silverlight 2 XAML implementations in Silverlight and Silverlight, 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.

.NET Framework Equivalent

System.Windows.Controls.Grid.ColumnDefinitions

Requirements

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

See Also

Reference

IXRGrid
IXRGrid::GetRowDefinitions