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" | 2 本の細い線。 |