次の方法で共有


IXRColumnDefinition (Windows Embedded CE 6.0)

1/6/2010

This class defines a column in a grid object.

Syntax

class IXRColumnDefinition : public IXRDependencyObject

Methods

Method Description

IXRColumnDefinition::GetActualWidth

Retrieves a value that represents the actual rendered width of this column definition.

IXRColumnDefinition::GetMaxWidth

Retrieves a value that represents the maximum width of this column definition.

IXRColumnDefinition::GetMinWidth

Retrieves a value that represents the minimum width of this column definition.

IXRColumnDefinition::GetWidth

Retrieves the calculated width of this column definition.

IXRColumnDefinition::SetMaxWidth

Sets a value that represents the maximum width of this column definition.

IXRColumnDefinition::SetMinWidth

Sets a value that represents the minimum width of this column definition.

IXRColumnDefinition::SetWidth

Sets an XRGridLength value of this column definition.

Remarks

You can set an IXRColumnDefinition for each column in a grid. If you do not specify an IXRColumnDefinition, by default the grid will contain a single column with "star" sized width.

To set a group of column definition elements by using C++ code, add the IXRColumnDefinition to an IXRColumnDefinitionCollection. You can retrieve a pointer to this collection from the IXRGrid object, by calling IXRGrid::GetColumnDefinitions.

You can also define a column definition in Microsoft Silverlight 2. 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 element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRColumnDefinition

.NET Framework Equivalent

System.Windows.Controls.ColumnDefinition

Requirements

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

See Also

Reference

Classes for UI Element Management