Word.UnderlineType enum

Estilos admitidos para el formato de subrayado.

Comentarios

[ Conjunto de API: WordApi 1.1 ]

Ejemplos

// 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"

Un subrayado de guion único.

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

Subrayado de guión de punto alternado.

dotDashLineHeavy = "DotDashLineHeavy"
dotLine = "DotLine"

Advertencia: dotLine ha quedado en desuso.

dotted = "Dotted"

Subrayado de puntos.

dottedHeavy = "DottedHeavy"
double = "Double"

Subrayado doble.

hidden = "Hidden"

Advertencia: oculto ha quedado en desuso.

mixed = "Mixed"
none = "None"

Sin subrayado.

single = "Single"

Un único subrayado. Este es el valor predeterminado.

thick = "Thick"

Un único subrayado grueso.

twoDotDashLine = "TwoDotDashLine"

Subrayado de punto a punto y guion alternado.

twoDotDashLineHeavy = "TwoDotDashLineHeavy"
wave = "Wave"

Un único subrayado ondulado.

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

Solo subraya palabras individuales.