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"

ウェーブの境界線。