[]
        
(Showing Draft Content)

更改行轴布局

透视表的显示可以使用 LayoutRowType 枚举更改为任何所需的布局。以下选项由此枚举提供:

  • CompactRow (默认布局)

  • OutlineRow

  • TabularRow

注意:如果 LayoutRowType 设置为 TabularRow,则 SubtotalLocationType 枚举只能设置为 Bottom。

参考下面的示例代码,将透视表的行轴布局设置为 TabularRow。

// Set the PivotTable LayoutRowType to Tabular Row
pivottable.setRowAxisLayout(LayoutRowType.TabularRow);