PowerPoint.ShapeLineStyle enum
Especifica o estilo 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: 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();
});
Campos
| single = "Single" | Linha única. |
| thickBetweenThin = "ThickBetweenThin" | Linha grossa com uma linha fina de cada lado. |
| thickThin = "ThickThin" | Linha grossa ao lado da linha fina. Para linhas horizontais, a linha espessa está acima da linha fina. Para linhas verticais, a linha espessa é à esquerda da linha fina. |
| thinThick = "ThinThick" | Linha grossa ao lado da linha fina. Para linhas horizontais, a linha espessa encontra-se abaixo da linha fina. Para linhas verticais, a linha espessa está à direita da linha fina. |
| thinThin = "ThinThin" | Duas linhas finas. |