PowerPoint.ShapeLineDashStyle enum

Gibt die Strichart für eine Linie 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

dash = "Dash"

Das Strichlinienmuster.

dashDot = "DashDot"

Das Linienmuster "Gestrichelt/Punkt".

dashDotDot = "DashDotDot"

Das Linienmuster "Strich-Punkt-Punkt".

longDash = "LongDash"

Das lange Strichlinienmuster.

longDashDot = "LongDashDot"

Das lange Strich-Punkt-Linienmuster.

longDashDotDot = "LongDashDotDot"

Das lange Linienmuster "Strich-Punkt-Punkt".

roundDot = "RoundDot"

Das runde Punktlinienmuster.

solid = "Solid"

Das einfarbige Linienmuster.

squareDot = "SquareDot"

Das quadratische Punktlinienmuster.

systemDash = "SystemDash"

Das System-Strichlinienmuster.

systemDashDot = "SystemDashDot"

Das Systemmuster der gestrichelten Punktlinie.

systemDot = "SystemDot"

Das System-Punktlinienmuster.