Partager via


Word.ListBuiltInNumberStyle enum

Représente les styles numériques intégrés pour les listes dans Word.

Remarques

[ Ensemble d’API : WordApiDesktop 1.1 ]

Exemples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/20-lists/manage-list-styles.yaml

// Gets the properties of the specified style.
await Word.run(async (context) => {
  const styleName = (document.getElementById("style-name-to-use") as HTMLInputElement).value;
  if (styleName == "") {
    console.warn("Enter a style name to get properties.");
    return;
  }

  const style: Word.Style = context.document.getStyles().getByNameOrNullObject(styleName);
  style.load("type");
  await context.sync();

  if (style.isNullObject || style.type != Word.StyleType.list) {
    console.warn(`There's no existing style with the name '${styleName}'. Or this isn't a list style.`);
  } else {
    // Load objects to log properties and their values in the console.
    style.load();
    style.listTemplate.load();
    await context.sync();

    console.log(`Properties of the '${styleName}' style:`, style);

    const listLevels = style.listTemplate.listLevels;
    listLevels.load("items");
    await context.sync();

    console.log(`List levels of the '${styleName}' style:`, listLevels);
  }
});

Champs

aiueo = "Aiueo"

Caractères Aiueo.

aiueoHalfWidth = "AiueoHalfWidth"

Caractères aiueo à demi-largeur.

arabic = "Arabic"

Chiffres arabes (1, 2, 3, ...).

arabic1 = "Arabic1"

Caractères arabes1.

arabic2 = "Arabic2"

Caractères arabes2.

arabicFullWidth = "ArabicFullWidth"

Nombres arabes à pleine chasse.

arabicLZ = "ArabicLZ"

Nombres à pleine chasse arabe avec zéros non significatifs.

arabicLZ2 = "ArabicLZ2"

Nombres arabes avec zéros non significatifs (style 2).

arabicLZ3 = "ArabicLZ3"

Nombres arabes avec zéros non significatifs (style 3).

arabicLZ4 = "ArabicLZ4"

Nombres arabes avec zéros non significatifs (style 4).

bullet = "Bullet"

Puces.

cardinalText = "CardinalText"

Nombres cardinaux sous forme de texte (un, deux, trois, ...).

chosung = "Chosung"

Caractères chosung.

ganada = "Ganada"

Caractères de Ganada.

gbnum1 = "GBNum1"

Caractères GBNum1.

gbnum2 = "GBNum2"

Caractères GBNum2.

gbnum3 = "GBNum3"

Caractères GBNum3.

gbnum4 = "GBNum4"

Caractères GBNum4.

hangul = "Hangul"

Caractères hangûl.

hanja = "Hanja"

Caractères Hanja.

hanjaRead = "HanjaRead"

Hanja lisait des nombres.

hanjaReadDigit = "HanjaReadDigit"

Hanja lit des chiffres.

hebrew1 = "Hebrew1"

Caractères hébreu1.

hebrew2 = "Hebrew2"

Caractères hébreu2.

hindiArabic = "HindiArabic"

Style Hindi arabe.

hindiCardinalText = "HindiCardinalText"

Texte cardinal hindi.

hindiLetter1 = "HindiLetter1"

Style Hindi - Lettre 1.

hindiLetter2 = "HindiLetter2"

Style Hindi - Lettre 2.

iroha = "Iroha"

Caractères Iroha.

irohaHalfWidth = "IrohaHalfWidth"

Caractères de demi-largeur Iroha.

kanji = "Kanji"

Kanji.

kanjiDigit = "KanjiDigit"

Chiffres kanji.

kanjiTraditional = "KanjiTraditional"

Caractères kanji traditionnels.

kanjiTraditional2 = "KanjiTraditional2"

Caractères kanji traditionnels (autre forme).

legal = "Legal"

Style de numérotation légal.

legalLZ = "LegalLZ"

Style de numérotation légal avec zéros non significatifs.

lowercaseBulgarian = "LowercaseBulgarian"

Minuscules bulgares.

lowercaseGreek = "LowercaseGreek"

Minuscules grecs.

lowercaseRussian = "LowercaseRussian"

Russe minuscule.

lowercaseTurkish = "LowercaseTurkish"

Turc minuscule.

lowerLetter = "LowerLetter"

Lettres minuscules (a, b, c, ...).

lowerRoman = "LowerRoman"

Chiffres romains minuscules (i, ii, iii, ...).

none = "None"

Aucun style numérique intégré.

numberInCircle = "NumberInCircle"

Nombres placés dans un cercle.

ordinal = "Ordinal"

Nombres ordinaux (1er, 2e, 3e, ...).

ordinalText = "OrdinalText"

Nombres ordinaux sous forme de texte (premier, deuxième, troisième, ...).

pictureBullet = "PictureBullet"

Puce d’image.

simpChinNum1 = "SimpChinNum1"

Nombres chinois simplifiés (style 1).

simpChinNum2 = "SimpChinNum2"

Nombres chinois simplifiés (style 2).

simpChinNum3 = "SimpChinNum3"

Nombres chinois simplifiés (style 3).

simpChinNum4 = "SimpChinNum4"

Nombres chinois simplifiés (style 4).

thaiArabic = "ThaiArabic"

Caractères arabes thaïs.

thaiCardinalText = "ThaiCardinalText"

Texte cardinal thaï.

thaiLetter = "ThaiLetter"

Caractères de lettre thaï.

tradChinNum1 = "TradChinNum1"

Nombres chinois traditionnels (style 1).

tradChinNum2 = "TradChinNum2"

Nombres chinois traditionnels (style 2).

tradChinNum3 = "TradChinNum3"

Nombres chinois traditionnels (style 3).

tradChinNum4 = "TradChinNum4"

Nombres chinois traditionnels (style 4).

uppercaseBulgarian = "UppercaseBulgarian"

Majuscules bulgares.

uppercaseGreek = "UppercaseGreek"

Grec majuscule.

uppercaseRussian = "UppercaseRussian"

Russe majuscule.

uppercaseTurkish = "UppercaseTurkish"

Turc majuscule.

upperLetter = "UpperLetter"

Lettres majuscules (A, B, C, ...).

upperRoman = "UpperRoman"

Chiffres romains majuscules (I, II, III, ...).

vietCardinalText = "VietCardinalText"

Texte cardinal vietnamien.

zodiac1 = "Zodiac1"

Zodiaque1 caractères.

zodiac2 = "Zodiac2"

Caractères zodiaques 2.

zodiac3 = "Zodiac3"

Caractères zodiac3.