Bearbeiten

Freigeben über


TableHeaders Element

Defines the headers for the columns of a table.

Schema

  • ViewDefinitions Element
  • View Element
  • TableControl Element
  • TableHeaders Element for TableControl

Syntax

<TableHeaders>
  <TableColumnHeader>...</TableColumnHeader>
</TableHeaders>

Attributes and Elements

The following sections describe the attributes, child elements, and parent elements of the TableHeaders element. There must be a child element for each property of the object that is to be displayed. The column header information is displayed in the order that the child elements are specified.

Attributes

None.

Child Elements

Element Description
TableColumnHeader Element Optional element.

Defines the label, the width, and the alignment of the data for a column of a table view.

Parent Elements

Element Description
TableControl Element Defines a table format for a view.

Remarks

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

Example

This example shows a TableHeaders element that defines two column headers.

<TableHeaders>
  <TableColumnHeader>
    <Label>Column 1</Label>
    <Width>16</Width>
    <Alignment>Left</Alignment>
  </TableColumnHeader>
  <TableColumnHeader>
    <Label>Column 2</Label>
    <Width>10</Width>
    <Alignment>Centered</Alignment>
  </TableColumnHeader>
</TableHeaders>

See Also

Creating a Table View

TableColumnHeader Element

TableControl Element

Writing a PowerShell Formatting File