Edit

Excel.ShapeLineDashStyle enum

The dash style for a line.

Remarks

API set: ExcelApi 1.9

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"