Поделиться через


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"

Трехмерная граница гравюры.

triple = "Triple"

Тройная граница.

wave = "Wave"

Граница волны.