PowerPoint.TableMergedAreaProperties interface
Representa as propriedades de uma área unida de células numa 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 merge areas of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying one 2x2 merged area.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "", "HHHH"],
["1", "", "", "1234"]
],
mergedAreas: [{ rowIndex: 1, columnIndex: 1, rowCount: 2, columnCount: 2 }]
});
await context.sync();
});
Propriedades
| column |
Especifica o número de colunas para a área de células unidas. Tem de ser 1 ou superior. |
| column |
Especifica o índice baseado em zero da coluna da célula superior esquerda da área unida. |
| row |
Especifica o número de linhas para a área de células unidas. Tem de ser 1 ou superior. |
| row |
Especifica o índice baseado em zero da linha da célula superior esquerda da área unida. |
Detalhes da propriedade
columnCount
Especifica o número de colunas para a área de células unidas. Tem de ser 1 ou superior.
columnCount: number;
Valor da propriedade
number
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 merge areas of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying one 2x2 merged area.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "", "HHHH"],
["1", "", "", "1234"]
],
mergedAreas: [{ rowIndex: 1, columnIndex: 1, rowCount: 2, columnCount: 2 }]
});
await context.sync();
});
columnIndex
Especifica o índice baseado em zero da coluna da célula superior esquerda da área unida.
columnIndex: number;
Valor da propriedade
number
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 merge areas of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying one 2x2 merged area.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "", "HHHH"],
["1", "", "", "1234"]
],
mergedAreas: [{ rowIndex: 1, columnIndex: 1, rowCount: 2, columnCount: 2 }]
});
await context.sync();
});
rowCount
Especifica o número de linhas para a área de células unidas. Tem de ser 1 ou superior.
rowCount: number;
Valor da propriedade
number
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 merge areas of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying one 2x2 merged area.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "", "HHHH"],
["1", "", "", "1234"]
],
mergedAreas: [{ rowIndex: 1, columnIndex: 1, rowCount: 2, columnCount: 2 }]
});
await context.sync();
});
rowIndex
Especifica o índice baseado em zero da linha da célula superior esquerda da área unida.
rowIndex: number;
Valor da propriedade
number
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 merge areas of a table.
await PowerPoint.run(async (context) => {
const shapes = context.presentation.getSelectedSlides().getItemAt(0).shapes;
// Add a table, specifying one 2x2 merged area.
shapes.addTable(3, 4, {
values: [
["A", "BB", "CCC", "DDDD"],
["E", "FF", "", "HHHH"],
["1", "", "", "1234"]
],
mergedAreas: [{ rowIndex: 1, columnIndex: 1, rowCount: 2, columnCount: 2 }]
});
await context.sync();
});