Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Excel.ShapeLineDashStyle enum
- Package:
- excel
The dash style for a line.
Remarks
Used by
Examples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/44-shape/shape-fill-and-line-formatting.yaml
await Excel.run(async (context) => {
// Apply outline formatting to the shape.
const sheet = context.workbook.worksheets.getItem("Sample");
const badge = sheet.shapes.getItem("Badge");
const lineFormat: Excel.ShapeLineFormat = badge.lineFormat;
lineFormat.set({
color: "#C55A11",
dashStyle: Excel.ShapeLineDashStyle.dashDotDot,
style: Excel.ShapeLineStyle.thinThick,
transparency: 0.2,
visible: true,
weight: 4
});
await context.sync();
});
Fields
| dash = "Dash" | |
| dashDot = "DashDot" | |
| dashDotDot = "DashDotDot" | |
| longDash = "LongDash" | |
| longDashDot = "LongDashDot" | |
| longDashDotDot = "LongDashDotDot" | |
| roundDot = "RoundDot" | |
| solid = "Solid" | |
| squareDot = "SquareDot" | |
| systemDash = "SystemDash" | |
| systemDashDot = "SystemDashDot" | |
| systemDot = "SystemDot" |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
