Word.UnderlineType enum

下線形式でサポートされているスタイル。

注釈

[ API セット: WordApi 1.1 ]

// Underline format text
// Run a batch operation against the Word object model.
await Word.run(async (context) => {

    // Create a range proxy object for the current selection.
    const selection = context.document.getSelection();

    // Queue a command to underline the current selection.
    selection.font.underline = Word.UnderlineType.single;

    // Synchronize the document state by executing the queued commands,
    // and return a promise to indicate task completion.
    await context.sync();
    console.log('The selection now has an underline style.');
});

フィールド

dashLine = "DashLine"

1 つのダッシュ下線。

dashLineHeavy = "DashLineHeavy"
dashLineLong = "DashLineLong"
dashLineLongHeavy = "DashLineLongHeavy"
dotDashLine = "DotDashLine"

ドットダッシュの下線が交互に表示されます。

dotDashLineHeavy = "DotDashLineHeavy"
dotLine = "DotLine"

警告: dotLine は非推奨になりました。

dotted = "Dotted"

点線の下線。

dottedHeavy = "DottedHeavy"
double = "Double"

二重下線。

hidden = "Hidden"

警告: 非表示は非推奨になりました。

mixed = "Mixed"
none = "None"

下線なし。

single = "Single"

1 つの下線。 これは既定の値です。

thick = "Thick"

1 つの太い下線。

twoDotDashLine = "TwoDotDashLine"

ドット-ドットダッシュの下線が交互に表示されます。

twoDotDashLineHeavy = "TwoDotDashLineHeavy"
wave = "Wave"

波状の下線 1 本。

waveDouble = "WaveDouble"
waveHeavy = "WaveHeavy"
word = "Word"

個々の単語に下線を付けるだけです。