Editar

Compartilhar via


TableColumnItem Element

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

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • TableControl Element
  • TableRowEntries Element
  • TableRowEntry Element
  • TableColumnItems Element
  • TableColumnItem Element

Syntax

<TableColumnItem>
  <Alignment>Left, Right, or Center</Alignment>
  <FormatString>FormatPattern</FormatString>
  <PropertyName>Nameof.NetProperty</PropertyName>
  <ScriptBlock>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 Optional element.

Defines how the data in a column of the row is displayed.
FormatString Element for TableColumnItem for TableControl Specifies a format pattern that is used to format the data in the column of the row.
PropertyName Element for TableColumnItem for TableControl Optional element.

Specifies the name of the property whose value is displayed.
ScriptBlock Element for TableColumnItem for TableControl 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 Defines the properties or scripts whose values are displayed in the row.

Remarks

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 System.Diagnostics.Process object.

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

See Also

Creating a Table View

Alignment Element for TableColumnItem for TableControl

TableColumnItems Element

FormatString Element for TableColumnItem for TableControl

PropertyName Element for TableColumnItem for TableControl

ScriptBlock Element for TableColumnItem for TableControl

Writing a PowerShell Formatting File