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"

Рамка с трехмерным тиснением.

threeDEngrave = "ThreeDEngrave"

Трехмерная гравировка рамки.

triple = "Triple"

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

wave = "Wave"

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