PowerPoint.ShapeType enum

Gibt den Typ einer Form an.

Hinweise

API-Satz: PowerPointApi 1.4

Verwendet von

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"

Das Shape ist eine Legende.

chart = "Chart"

Das Shape ist ein Diagramm.

contentApp = "ContentApp"

Das Shape ist ein Office-Inhalts-Add-In.

diagram = "Diagram"

Bei der Form handelt es sich um ein Diagramm.

freeform = "Freeform"

Die Form ist ein Freiformobjekt.

geometricShape = "GeometricShape"

Die Form ist eine geometrische Form, z. B. ein Rechteck.

graphic = "Graphic"

Bei dem Shape handelt es sich um eine Grafik.

group = "Group"

Das Shape ist ein Gruppen-Shape, das Unter-Shapes enthält.

image = "Image"

Die Form ist ein Bild.

ink = "Ink"

Bei der Form handelt es sich um ein Freihandobjekt.

line = "Line"

Das Shape ist eine Linie.

media = "Media"

Die Form ist ein Medienobjekt.

model3D = "Model3D"

Bei der Form handelt es sich um ein 3D-Modell.

ole = "Ole"

Die Form ist ein OLE-Objekt (Object Linking and Embedding, OLE).

placeholder = "Placeholder"

Das Shape ist ein Platzhalter.

smartArt = "SmartArt"

Bei dem Shape handelt es sich um eine SmartArt-Grafik.

table = "Table"

Das Shape ist eine Tabelle.

textBox = "TextBox"

Die Form ist ein Textfeld.

unsupported = "Unsupported"

Der Typ des angegebenen Shapes wird nicht unterstützt.