Word.TwoLinesInOneType enum

Spécifie les deux lignes d’un type.

Remarques

Jeu d’API : WordApiDesktop 1.4

Utilisateur

Exemples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/apply-character-layout-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 to the first paragraph.");
});

Champs

angleBrackets = "AngleBrackets"

Deux lignes en une avec des chevrons.

curlyBrackets = "CurlyBrackets"

Deux lignes en une avec des accolades.

noBrackets = "NoBrackets"

Deux lignes en une sans parenthèses.

none = "None"

Pas deux lignes en une.

parentheses = "Parentheses"

Deux lignes en une entre parenthèses.

squareBrackets = "SquareBrackets"

Deux lignes en une entre crochets.