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" | Две тонкие линии. |