Share via


IXRGrid::GetColumnDefinitions (Compact 2013)

3/28/2014

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 XAML for Windows Embedded-based application. You can populate this collection by using <Grid.ColumnDefinitions> implicit collection syntax. For information about the differences in Microsoft Silverlight 3 XAML implementations in XAML for Windows Embedded and Silverlight, see Differences Between Microsoft Silverlight 3 and XAML 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

See Also

Reference

IXRGrid
IXRGrid::GetRowDefinitions