PowerPoint.ShapeLineDashStyle enum

線の実線/点線のスタイルを指定します。

注釈

[ API セット: PowerPointApi 1.4 ]

// 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 = 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.dashStyle = PowerPoint.ShapeLineDashStyle.dashDot;
    }
  });
  await context.sync();
});

フィールド

dash = "Dash"

破線パターン

dashDot = "DashDot"

破線パターン

dashDotDot = "DashDotDot"

ダッシュドットドットの線パターン

longDash = "LongDash"

長い破線パターン

longDashDot = "LongDashDot"

長い破線パターン

longDashDotDot = "LongDashDotDot"

長いダッシュ ドットドットの線パターン

roundDot = "RoundDot"

丸いドット線パターン

solid = "Solid"

実線パターン

squareDot = "SquareDot"

正方形のドット 線パターン

systemDash = "SystemDash"

システム破線パターン

systemDashDot = "SystemDashDot"

システムの破線パターン

systemDot = "SystemDot"

システムドットラインパターン