Поделиться через


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"

Шаблон системной точечной линии