共用方式為


TableRowEntries 元素

定義資料表的資料列。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • TableControl 元素
  • TableRowEntries 元素

Syntax

<TableRowEntries>
  <TableRowEntry>...</TableRowEntry>
</TableRowEntries>

屬性和項目

下列各節描述專案的屬性、子項目和父元素 TableRowEntries

屬性

無。

子元素

元素 描述
適用于 TableControl 之 TableRowEntries 的 TableRowEntry 元素 必要元素。

定義顯示在資料表資料列中的資料。

父項目

元素 描述
TableControl 元素 定義視圖的資料表格式。

備註

您必須為數據表視圖指定一個或多個 TableRowEntry 元素。 可以加入的專案數目沒有最大限制,也不會影響 TableRowEntry 其順序。

如需有關資料表視圖元件的詳細資訊,請參閱 建立資料表視圖

範例

下列範例顯示的專案 TableRowEntries 會定義一個資料列,該資料列會顯示 system.string 物件之兩個屬性的值。

<TableRowEntries>
  <TableRowEntry>
    <EntrySelectedBy>
      <TypeName>System.Diagnostics.Process</TypeName>
    </EntrySelectedBy>
    <TableColumnItems>
      <TableColumnItem>
        <PropertyName> Property for first column</PropertyName>
      </TableColumnItem>
      <TableColumnItem>
        <PropertyName> Property for second column</PropertyName>
      </TableColumnItem>
    </TableColumnItems>
  </TableRowEntry>
</TableRowEntries>

另請參閱

建立表格檢視

TableControl 元素

TableRowEntry 元素

撰寫 PowerShell 格式設定檔案