Word.TwoLinesInOneType enum
1 つの種類で 2 つの行を指定します。
注釈
使用元
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/format-range-text-desktop.yaml
// Displays the first paragraph's text as two lines enclosed in parentheses.
await Word.run(async (context) => {
const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
const twoLineLayout: Word.TwoLinesInOneType = Word.TwoLinesInOneType.parentheses;
paragraphRange.twoLinesInOne = twoLineLayout;
await context.sync();
console.log("Applied two-line text with parentheses.");
});
フィールド
| angleBrackets = "AngleBrackets" | 山かっこ付きの 2 行が 1 つになっています。 |
| curlyBrackets = "CurlyBrackets" | 2 つの行が 1 つに (中かっこ付き)。 |
| noBrackets = "NoBrackets" | 角かっこなしで 1 行に 2 行。 |
| none = "None" | 1 行に 2 行はありません。 |
| parentheses = "Parentheses" | かっこ付きの 2 行が 1 行に。 |
| squareBrackets = "SquareBrackets" | 角かっこ付きの 2 行が 1 つに。 |