PowerPoint.ShapeLineDashStyle 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();
});
フィールド
| dash = "Dash" | 破線パターン。 |
| dashDot = "DashDot" | 破線パターン。 |
| dashDotDot = "DashDotDot" | ダッシュ ドットドットの線パターン。 |
| longDash = "LongDash" | 長い破線パターン。 |
| longDashDot = "LongDashDot" | 長い破線パターン。 |
| longDashDotDot = "LongDashDotDot" | 長いダッシュ ドットドットの線パターン。 |
| roundDot = "RoundDot" | 丸いドット 線パターン。 |
| solid = "Solid" | 実線パターン。 |
| squareDot = "SquareDot" | 四角形のドット線パターン。 |
| systemDash = "SystemDash" | システム破線パターン。 |
| systemDashDot = "SystemDashDot" | システムの破線パターン。 |
| systemDot = "SystemDot" | システムのドット ライン パターン。 |