Compartilhar via


PowerPoint.ShapeLineDashStyle enum

Especifica o estilo do traço de uma linha.

Comentários

[ Conjunto de API: PowerPointApi 1.4 ]

Exemplos

// 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();
});

Campos

dash = "Dash"

O padrão de linha de traço

dashDot = "DashDot"

O padrão de linha dash-dot

dashDotDot = "DashDotDot"

O padrão de linha dash-dot-dot

longDash = "LongDash"

O padrão de linha de traço longo

longDashDot = "LongDashDot"

O padrão de linha de traço-ponto longo

longDashDotDot = "LongDashDotDot"

O padrão de linha de traço-ponto-ponto longo

roundDot = "RoundDot"

O padrão de linha de ponto redondo

solid = "Solid"

O padrão de linha sólida

squareDot = "SquareDot"

O padrão de linha de ponto quadrado

systemDash = "SystemDash"

O padrão de linha de travessão do sistema

systemDashDot = "SystemDashDot"

O padrão de linha dash-ponto do sistema

systemDot = "SystemDot"

O padrão de linha de pontos do sistema