PowerPoint.TableRowProperties interface
Fornece as propriedades da linha da tabela.
Comentários
[ Conjunto de API: PowerPointApi 1.8 ]
Exemplos
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/shapes/add-modify-tables.yaml
// Specifies the column widths and row heights of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying column widths and row heights.
shapes.addTable(3, 4, {
columns: [{ columnWidth: 100 }, { columnWidth: 200 }, { columnWidth: 100 }, { columnWidth: 200 }],
rows: [{ rowHeight: 60 }, { rowHeight: 120 }, { rowHeight: 180 }]
});
await context.sync();
});
Propriedades
| row |
Representa a altura pretendida de cada linha em pontos ou é indefinida. Quando uma tabela está a ser adicionada, para linhas cuja altura é indefinida, a altura da linha será calculada ao dividir uniformemente a altura restante da tabela entre essas linhas. Se a tabela não tiver uma altura definida, será utilizada uma altura de linha predefinida. |
Detalhes da propriedade
rowHeight
Representa a altura pretendida de cada linha em pontos ou é indefinida.
Quando uma tabela está a ser adicionada, para linhas cuja altura é indefinida, a altura da linha será calculada ao dividir uniformemente a altura restante da tabela entre essas linhas. Se a tabela não tiver uma altura definida, será utilizada uma altura de linha predefinida.
rowHeight?: number | undefined;
Valor da propriedade
number | undefined
Comentários
[ Conjunto de API: PowerPointApi 1.8 ]
Exemplos
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/shapes/add-modify-tables.yaml
// Specifies the column widths and row heights of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying column widths and row heights.
shapes.addTable(3, 4, {
columns: [{ columnWidth: 100 }, { columnWidth: 200 }, { columnWidth: 100 }, { columnWidth: 200 }],
rows: [{ rowHeight: 60 }, { rowHeight: 120 }, { rowHeight: 180 }]
});
await context.sync();
});