Word.BorderWidth enum

Représente la largeur de la bordure d’un style.

Remarques

Jeu d’API : WordApiDesktop 1.1

Utilisateur

Exemples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/manage-styles.yaml

// Sets the outside border width of the sample style.
await Word.run(async (context) => {
  const sampleStyle: Word.Style = context.document.getStyles().getByName("Sample Style");
  const borders: Word.BorderCollection = sampleStyle.borders;
  const borderWidth: Word.BorderWidth = Word.BorderWidth.pt225;
  borders.outsideBorderWidth = borderWidth;
  await context.sync();

  console.log("Set the Sample Style outside border width to 2.25 points.");
});

Champs

mixed = "Mixed"

Largeur mixte.

none = "None"

Aucune largeur.

pt025 = "Pt025"

0,25 point.

pt050 = "Pt050"

0,50 point.

pt075 = "Pt075"

0,75 point.

pt100 = "Pt100"

1,00 point. Valeur par défaut.

pt150 = "Pt150"

1.50 point.

pt225 = "Pt225"

2,25 points.

pt300 = "Pt300"

3,00 points.

pt450 = "Pt450"

4,50 points.

pt600 = "Pt600"

6,00 points.