Word.BorderType enum
罫線の種類を表します。
注釈
例
// 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" | 3 つの罫線。 |
| wave = "Wave" | 波の境界線。 |