Excel.ShapeLineStyle enum
Style d’une ligne.
Remarques
Utilisateur
Exemples
// 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();
});
Champs
| single = "Single" | Ligne simple. |
| thickBetweenThin = "ThickBetweenThin" | Trait épais avec un trait fin de chaque coté |
| thickThin = "ThickThin" | Trait épais jouxtant un trait fin. Pour les lignes horizontales, la ligne épaisse se trouve au-dessus de la ligne mince. Pour les lignes verticales, la ligne épaisse est à gauche de la ligne mince. |
| thinThick = "ThinThick" | Trait épais jouxtant un trait fin. Pour les lignes horizontales, la ligne épaisse se trouve sous la ligne mince. Pour les lignes verticales, la ligne épaisse se trouve à droite de la ligne mince. |
| thinThin = "ThinThin" | Deux traits fins |