PowerPoint.ShapeType enum
Especifica o tipo de uma forma.
Comentários
[ Conjunto de API: PowerPointApi 1.4 ]
Exemplos
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/shapes/get-shapes-by-type.yaml
// Changes the dash style of every line in the slide.
await PowerPoint.run(async (context) => {
// Get the type of shape for every shape in the collection.
const shapes: PowerPoint.ShapeCollection = context.presentation.slides.getItemAt(0).shapes;
shapes.load("type");
await context.sync();
// Change the dash style for shapes of the type `line`.
shapes.items.forEach((shape) => {
if (shape.type === PowerPoint.ShapeType.line) {
shape.lineFormat.style = PowerPoint.ShapeLineStyle.thickThin;
shape.lineFormat.dashStyle = PowerPoint.ShapeLineDashStyle.dashDot;
}
});
await context.sync();
});
Campos
| callout = "Callout" | A forma é uma nota de aviso. |
| chart = "Chart" | A forma é um gráfico. |
| contentApp = "ContentApp" | A forma é um Suplemento do Office de conteúdo. |
| diagram = "Diagram" | A forma é um diagrama. |
| freeform = "Freeform" | A forma é um objeto de forma livre. |
| geometricShape = "GeometricShape" | A forma é uma forma geométrica, como o retângulo. |
| graphic = "Graphic" | A forma é um gráfico. |
| group = "Group" | A forma é uma forma de grupo que contém sub-formas. |
| image = "Image" | A forma é uma imagem. |
| ink = "Ink" | A forma é um objeto de tinta digital. |
| line = "Line" | A forma é uma linha. |
| media = "Media" | A forma é um objeto multimédia. |
| model3D = "Model3D" | A forma é um modelo 3D. |
| ole = "Ole" | A forma é um objeto OLE (Object Linking and Embedding). |
| placeholder = "Placeholder" | A forma é um marcador de posição. |
| smartArt = "SmartArt" | A forma é um gráfico SmartArt. |
| table = "Table" | A forma é uma tabela. |
| textBox = "TextBox" | A forma é uma caixa de texto. |
| unsupported = "Unsupported" | O tipo da forma especificada não é suportado. |