Word.BorderType enum

Représente le type de bordure .

Remarques

Jeu d’API : WordApi 1.3

Utilisateur

Exemples

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

// Gets border details about the first of the first table in the document.
await Word.run(async (context) => {
  const firstTable: Word.Table = context.document.body.tables.getFirst();
  const firstCell: Word.TableCell = firstTable.getCell(0, 0);
  const borderLocation = "Left";
  const border: Word.TableBorder = firstCell.getBorder(borderLocation);
  border.load(["type", "color", "width"]);
  await context.sync();

  console.log(
    `Details about the ${borderLocation} border of the first table's first cell:`,
    `- Color: ${border.color}`,
    `- Type: ${border.type}`,
    `- Width: ${border.width} points`,
  );
});

Champs

dashDotStroked = "DashDotStroked"

Bordure en tirets-points.

dashed = "Dashed"

Bordure en pointillés.

dashedSmall = "DashedSmall"

Petite bordure en pointillés.

dot2Dashed = "Dot2Dashed"

Bordure à points doubles.

dotDashed = "DotDashed"

Bordure pointillée.

dotted = "Dotted"

Bordure pointillée.

double = "Double"

Double bordure.

doubleWave = "DoubleWave"

Bordure à double vague.

mixed = "Mixed"

Type de bordure mixte.

none = "None"

Pas de bordure.

single = "Single"

Une seule bordure.

thickThinLarge = "ThickThinLarge"

Grande bordure épaisse-fine.

thickThinMed = "ThickThinMed"

Bordure moyenne épaisse-fine.

thickThinSmall = "ThickThinSmall"

Petite bordure épaisse-fine.

thinThickLarge = "ThinThickLarge"

Grande bordure fine-épaisse.

thinThickMed = "ThinThickMed"

Bordure moyenne fine-épaisse.

thinThickSmall = "ThinThickSmall"

Petite bordure fine-épaisse.

thinThickThinLarge = "ThinThickThinLarge"

Bordure fine-épaisse-mince.

thinThickThinMed = "ThinThickThinMed"

Bordure moyenne fine-épaisse-fine.

thinThickThinSmall = "ThinThickThinSmall"

Petite bordure mince-épaisse-mince.

threeDEmboss = "ThreeDEmboss"

Bordure en relief 3D.

threeDEngrave = "ThreeDEngrave"

Gravure 3D de la bordure.

triple = "Triple"

Triple bordure.

wave = "Wave"

Bordure ondulée.