Word.HorizontalInVerticalType enum

Spécifie le format d’un texte horizontal défini dans un texte vertical.

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

// Keeps the first paragraph's characters horizontal within vertical text.
await Word.run(async (context) => {
    const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
    const horizontalLayout: Word.HorizontalInVerticalType = Word.HorizontalInVerticalType.fitInLine;
    paragraphRange.horizontalInVertical = horizontalLayout;
    await context.sync();
    console.log("Enabled horizontal-in-vertical layout on the first paragraph. Get layout settings to verify it.");
});

Champs

fitInLine = "FitInLine"

Le texte horizontal est dimensionné pour s'ajuster à l'alignement du texte vertical.

none = "None"

Aucune mise en forme n'est appliquée au texte horizontal.

resizeLine = "ResizeLine"

Le texte horizontal est dimensionné pour s'ajuster à l'alignement du texte vertical.