Excel.ShapeLineStyle enum
线条的样式。
注解
使用方
示例
// 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();
});
字段
| single = "Single" | 单线。 |
| thickBetweenThin = "ThickBetweenThin" | 粗线每一侧各带一条细线。 |
| thickThin = "ThickThin" | 粗线位于细线旁边。 对于水平线,粗线位于细线上方。 对于垂直线,粗线位于细线的左侧。 |
| thinThick = "ThinThick" | 粗线位于细线旁边。 对于水平线,粗线位于细线下方。 对于垂直线,粗线位于细线的右侧。 |
| thinThin = "ThinThin" | 双细线。 |