PowerPoint.ShapeLineStyle 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: 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();
});
フィールド
| single = "Single" | 一重線を指定します。 |
| thickBetweenThin = "ThickBetweenThin" | 両側を細い線にはさまれた太い線。 |
| thickThin = "ThickThin" | 細い線の横に太い線。 水平線の場合、太い線は細線の上にあります。 垂直線の場合、太い線は細線の左側にあります。 |
| thinThick = "ThinThick" | 細い線の横に太い線。 水平線の場合、太い線は細い線の下にあります。 垂直線の場合、太い線は細い線の右側にあります。 |
| thinThin = "ThinThin" | 2 本の細い線。 |