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>
Attributes and Elements
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 TableControlEntry 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.
Example
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>
Creating a Table View
Alignment Element for TableColumnItem for TableControl (Format)
TableColumnItems Element (Format)
FormatString Element for TableColumnItem for TableControl (Format)
PropertyName Element for TableColumnItem for TableControl (Format)
ScriptBlock Element for TableColumnItem for TableControl (Format)
Writing a Windows PowerShell Formatting File