Compartir a través de


PowerPoint.ShapeLineDashStyle enum

Especifica el estilo de guión de una línea.

Comentarios

[ Conjunto de API: PowerPointApi 1.4 ]

Ejemplos

// 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"

Patrón de línea de guión

dashDot = "DashDot"

Patrón de línea de punto de guión

dashDotDot = "DashDotDot"

Patrón de línea dash-dot-dot

longDash = "LongDash"

Patrón de línea de guion largo

longDashDot = "LongDashDot"

Patrón de línea de punto de guión largo

longDashDotDot = "LongDashDotDot"

Patrón de línea de punto-punto de guion largo

roundDot = "RoundDot"

Patrón de línea de punto redondo

solid = "Solid"

Patrón de línea sólida

squareDot = "SquareDot"

Patrón de línea de punto cuadrado

systemDash = "SystemDash"

Patrón de línea de guion del sistema

systemDashDot = "SystemDashDot"

Patrón de línea dash-dot del sistema

systemDot = "SystemDot"

Patrón de línea de punto del sistema