Word.BorderWidth enum

スタイルの境界線の幅を表します。

注釈

API セット: WordApiDesktop 1.1

使用元

例

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

// Sets the outside border width of the sample style.
await Word.run(async (context) => {
  const sampleStyle: Word.Style = context.document.getStyles().getByName("Sample Style");
  const borders: Word.BorderCollection = sampleStyle.borders;
  const borderWidth: Word.BorderWidth = Word.BorderWidth.pt225;
  borders.outsideBorderWidth = borderWidth;
  await context.sync();

  console.log("Set the Sample Style outside border width to 2.25 points.");
});

フィールド

mixed = "Mixed"

幅が混在した。

none = "None"

幅なし。

pt025 = "Pt025"

0.25 ポイント

pt050 = "Pt050"

0.50 ポイント

pt075 = "Pt075"

0.75 ポイント

pt100 = "Pt100"

1.00ポイント。 これが既定です。

pt150 = "Pt150"

1.50 ポイント

pt225 = "Pt225"

2.25 ポイント

pt300 = "Pt300"

3.00 ポイント

pt450 = "Pt450"

4.50 ポイント

pt600 = "Pt600"

6.00 ポイント