Word.UnderlineType enum

Os estilos com suporte para o formato sublinhado.

Comentários

[ Conjunto de API: WordApi 1.1 ]

Exemplos

// 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.');
});

Campos

dashLine = "DashLine"

Um único sublinhado de traço.

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

Um sublinhado alternado do ponto-traço.

dotDashLineHeavy = "DotDashLineHeavy"
dotLine = "DotLine"

Aviso: dotLine foi preterido.

dotted = "Dotted"

Um sublinhado pontilhado.

dottedHeavy = "DottedHeavy"
double = "Double"

Um sublinhado duplo.

hidden = "Hidden"

Aviso: oculto foi preterido.

mixed = "Mixed"
none = "None"

Sem sublinhado.

single = "Single"

Um único sublinhado. Esse é o valor padrão.

thick = "Thick"

Um único sublinhado grosso.

twoDotDashLine = "TwoDotDashLine"

Um sublinhado alternado dot-dot-dash.

twoDotDashLineHeavy = "TwoDotDashLineHeavy"
wave = "Wave"

Um único sublinhado ondulado.

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

Apenas sublinhar palavras individuais.