PowerPoint.TableRowProperties interface
Proporciona las propiedades de fila de tabla.
Comentarios
Conjunto de API: PowerPointApi 1.8
Usada por
Ejemplos
// 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();
});
Propiedades
| row |
Representa el alto deseado de cada fila en puntos o no está definido. Cuando se agrega una tabla, para las filas cuyo alto no está definido, el alto de fila se calculará dividiendo uniformemente el alto restante de la tabla entre esas filas. Si la tabla no tiene un alto definido, se usará un alto de fila predeterminado. |
Detalles de las propiedades
rowHeight
Representa el alto deseado de cada fila en puntos o no está definido.
Cuando se agrega una tabla, para las filas cuyo alto no está definido, el alto de fila se calculará dividiendo uniformemente el alto restante de la tabla entre esas filas. Si la tabla no tiene un alto definido, se usará un alto de fila predeterminado.
rowHeight?: number | undefined;
Valor de propiedad
number | undefined
Comentarios
Conjunto de API: PowerPointApi 1.8
Ejemplos
// 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();
});