Word.BorderType enum

边框类型。

注解

[ API 集:WordApi 1.3 ]

示例

// 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`);
});

字段

dashDotStroked = "DashDotStroked"

虚线点划线边框。

dashed = "Dashed"

虚线边框。

dashedSmall = "DashedSmall"

虚线小边框。

dot2Dashed = "Dot2Dashed"

双点虚线边框。

dotDashed = "DotDashed"

点虚线边框。

dotted = "Dotted"

虚线边框。

double = "Double"

双边框。

doubleWave = "DoubleWave"

双波边框。

mixed = "Mixed"

混合边框类型。

none = "None"

无边框。

single = "Single"

单边框。

thickThinLarge = "ThickThinLarge"

粗细的大边框。

thickThinMed = "ThickThinMed"

粗细中等边框。

thickThinSmall = "ThickThinSmall"

粗细的小边框。

thinThickLarge = "ThinThickLarge"

细粗大边框。

thinThickMed = "ThinThickMed"

细粗中等边框。

thinThickSmall = "ThinThickSmall"

薄厚的小边框。

thinThickThinLarge = "ThinThickThinLarge"

细粗细大边框。

thinThickThinMed = "ThinThickThinMed"

薄-厚-细的中等边框。

thinThickThinSmall = "ThinThickThinSmall"

细粗细小边框。

threeDEmboss = "ThreeDEmboss"

3D 浮雕边框。

threeDEngrave = "ThreeDEngrave"

3D 雕刻边框。

triple = "Triple"

三重边框。

wave = "Wave"

波形边框。