PowerPoint.ShapeType enum
Gibt den Typ einer Form an.
Hinweise
[ API-Satz: PowerPointApi 1.4 ]
Beispiele
// 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();
});
Felder
| callout = "Callout" | Die Form ist eine Legende. |
| chart = "Chart" | Die Form ist ein Diagramm. |
| contentApp = "ContentApp" | Die Form ist ein Inhalts-Office-Add-In. |
| diagram = "Diagram" | Die Form ist ein Diagramm. |
| freeform = "Freeform" | Die Form ist ein Freihandformobjekt. |
| geometricShape = "GeometricShape" | Die Form ist eine geometrische Form, z. B. ein Rechteck. |
| graphic = "Graphic" | Die Form ist eine Grafik. |
| group = "Group" | Die Form ist eine Gruppenform, die Unterformen enthält. |
| image = "Image" | Die Form ist ein Bild. |
| ink = "Ink" | Die Form ist ein Freihandobjekt. |
| line = "Line" | Die Form ist eine Linie. |
| media = "Media" | Die Form ist ein Medienobjekt. |
| model3D = "Model3D" | Die Form ist ein 3D-Modell. |
| ole = "Ole" | Die Form ist ein OLE-Objekt (Object Linking and Embedding). |
| placeholder = "Placeholder" | Die Form ist ein Platzhalter. |
| smartArt = "SmartArt" | Die Form ist eine SmartArt-Grafik. |
| table = "Table" | Die Form ist eine Tabelle. |
| textBox = "TextBox" | Die Form ist ein Textfeld. |
| unsupported = "Unsupported" | Der Typ der angegebenen Form wird nicht unterstützt. |