PowerPoint.ShapeLineDashStyle enum
Определяет стиль штриха для линии.
Комментарии
Используется
- PowerPoint.Border: dashStyle
- PowerPoint.BorderProperties: dashStyle
- PowerPoint.ShapeLineFormat: dashStyle
Примеры
// 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" | Системный узор в виде пунктирных линий. |