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" | Шаблон системной точечной линии. |