Word.UnderlineType enum

Représente les styles pris en charge pour le format souligné.

Remarques

Jeu d’API : WordApi 1.1

Utilisateur

Exemples

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

Champs

dashLine = "DashLine"

Un trait de soulignement simple.

dashLineHeavy = "DashLineHeavy"

Un trait de soulignement lourd.

dashLineLong = "DashLineLong"

Un long trait de soulignement.

dashLineLongHeavy = "DashLineLongHeavy"

Un trait de soulignement long et lourd.

dotDashLine = "DotDashLine"

Un soulignement alterné point-tiret.

dotDashLineHeavy = "DotDashLineHeavy"

Un soulignement pointillé épais.

dotLine = "DotLine"

Avertissement : dotLine a été supprimé.

dotted = "Dotted"

Un soulignement en pointillés.

dottedHeavy = "DottedHeavy"

Un soulignement lourd en pointillés.

double = "Double"

Un double soulignement.

hidden = "Hidden"

Avertissement : « Masqué » a été supprimé.

mixed = "Mixed"
none = "None"

Aucun soulignement.

single = "Single"

Un soulignement simple. Il s’agit de la valeur par défaut.

thick = "Thick"

Un seul soulignement épais.

twoDotDashLine = "TwoDotDashLine"

Un soulignement alterné point-point-tiret.

twoDotDashLineHeavy = "TwoDotDashLineHeavy"

Un soulignement alterné point-point-point-tiret.

wave = "Wave"

Un seul soulignement ondulé.

waveDouble = "WaveDouble"

Un soulignement à double ondulation.

waveHeavy = "WaveHeavy"

Un soulignement lourd et ondulé.

word = "Word"

Souligner uniquement des mots individuels.