PowerPoint.ShapeLineDashStyle enum
Gibt die Strichart für eine Linie an.
Hinweise
[ API-Satz: PowerPointApi 1.4 ]
Beispiele
// 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.dashStyle = PowerPoint.ShapeLineDashStyle.dashDot;
}
});
await context.sync();
});
Felder
dash = "Dash" | Das Strichlinienmuster. |
dashDot = "DashDot" | Das Strich-Punkt-Linienmuster. |
dashDotDot = "DashDotDot" | Das Strich-Punkt-Punkt-Linienmuster. |
longDash = "LongDash" | Das Muster für lange Strichlinien. |
longDashDot = "LongDashDot" | Das Linienmuster mit langen Strichpunkten. |
longDashDotDot = "LongDashDotDot" | Das Linienmuster mit langen Strichpunkten. |
roundDot = "RoundDot" | Das runde Punktlinienmuster. |
solid = "Solid" | Das Einfarbige Linienmuster. |
squareDot = "SquareDot" | Das quadratische Punktlinienmuster. |
systemDash = "SystemDash" | Das Linienmuster des Systems. |
systemDashDot = "SystemDashDot" | Das Strich-Punkt-Linienmuster des Systems. |
systemDot = "SystemDot" | Das Systempunktlinienmuster. |