ExcelScript.PivotLayoutType enum
Comentários
Exemplos
/**
* This script sets the layout of the "Farms Sales" PivotTable to the "tabular"
* setting. This places the fields from the Rows area in separate columns.
*/
function main(workbook: ExcelScript.Workbook) {
// Get the PivotTable named "Farm Sales".
const pivot = workbook.getPivotTable("Farm Sales");
// Get the PivotLayout object.
const layout = pivot.getLayout();
// Set the layout type to "tabular".
layout.setLayoutType(ExcelScript.PivotLayoutType.tabular);
}
Campos
compact | Um formulário comprimido horizontalmente com etiquetas do campo seguinte na mesma coluna. |
outline | Os itens dos campos internos estão na mesma linha que os itens e subtotais dos campos externos estão sempre na parte inferior. |
tabular | Os itens dos campos internos estão sempre numa nova linha relativamente aos itens dos campos externos. |
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.