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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
PowerShell