Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TableColumnItem Element for TableColumnItems for TableControl (Format)

Defines the property or script whose value is displayed in the column of the row.

<TableColumnItem>
  <Alignment>Left, Right, or Center</Alignment>
  <PropertyName>Nameof.NetProperty</PropertyName>
  <SciptBlock>ScriptToEvaluate</ScriptBlock>
</TableColumnItem>

The following sections describe the attributes, child elements, and parent element of the TableColumnItem element.

Attributes

None.

Child Elements

 

Element Description

Alignment Element for TableColumnItem for TableControl (Format)

Optional element.

Defines how the data in a column of the row is displayed.

FormatString Element for TableColumnItem for TableControl (Format)

Specifies a format pattern that is used to format the data in the column of the row.

PropertyName Element for TableColumnItem for TableControl (Format)

Optional element.

Specifies the name of the property whose value is displayed.

ScriptBlock Element for TableColumnItem for TableControl (Format)

Optional element.

Specifies the script whose value is displayed in the column of a row.

Parent Elements

 

Element Description

TableColumnItems Element for TableRowEntry for TableControl (Format)

Defines the properties or scripts whose values are displayed in the row.

You can specify a property of an object or a script in each column of the row. If no child elements are specified, the item is a placeholder, and no data is displayed.

For more information about the components of a table view, see Creating a Table View.

This example shows a TableColumnItem element that displays the value of the Status property of the Process object.

<TableColumnItem>
   <Alignment>Centered</Alignment>
  <PropertyName>Status</PropertyName>
</TableColumnItem>

Community Additions

Show:
© 2016 Microsoft