Word.ListBuiltInNumberStyle enum
Wordのリストの組み込みの数値スタイルを表します。
注釈
[ API セット: WordApiDesktop 1.1 ]
例
// 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);
}
});
フィールド
| aiueo = "Aiueo" | Aiueo 文字。 |
| aiueoHalfWidth = "AiueoHalfWidth" | Aiueo の半角文字。 |
| arabic = "Arabic" | アラビア数字 (1、2、3、...)。 |
| arabic1 = "Arabic1" | アラビア語 1 文字。 |
| arabic2 = "Arabic2" | アラビア語 2 文字。 |
| arabicFullWidth = "ArabicFullWidth" | アラビア語の全角数字。 |
| arabicLZ = "ArabicLZ" | 先頭にゼロが付いたアラビア語の全角の数値。 |
| arabicLZ2 = "ArabicLZ2" | 先頭が 0 のアラビア数字 (スタイル 2)。 |
| arabicLZ3 = "ArabicLZ3" | 先頭に 0 を持つアラビア数字 (スタイル 3)。 |
| arabicLZ4 = "ArabicLZ4" | 先頭に 0 を持つアラビア数字 (スタイル 4)。 |
| bullet = "Bullet" | 箇条書き文字。 |
| cardinalText = "CardinalText" | テキストとしてのカーディナル番号 (1、2、3、..)。 |
| chosung = "Chosung" | Chosung 文字。 |
| ganada = "Ganada" | Ganada 文字。 |
| gbnum1 = "GBNum1" | GBNum1 文字。 |
| gbnum2 = "GBNum2" | GBNum2 文字。 |
| gbnum3 = "GBNum3" | GBNum3 文字。 |
| gbnum4 = "GBNum4" | GBNum4 文字。 |
| hangul = "Hangul" | ハングル文字。 |
| hanja = "Hanja" | Hanja 文字。 |
| hanjaRead = "HanjaRead" | Hanja は数字を読み取る。 |
| hanjaReadDigit = "HanjaReadDigit" | Hanja は数字を読み取ります。 |
| hebrew1 = "Hebrew1" | ヘブライ語 1 文字。 |
| hebrew2 = "Hebrew2" | ヘブライ語 2 文字。 |
| hindiArabic = "HindiArabic" | ヒンディー語の数字 |
| hindiCardinalText = "HindiCardinalText" | ヒンディー語のカーディナル テキスト。 |
| hindiLetter1 = "HindiLetter1" | ヒンディー語の文字 1 |
| hindiLetter2 = "HindiLetter2" | ヒンディー語の文字 2 |
| iroha = "Iroha" | Iroha 文字。 |
| irohaHalfWidth = "IrohaHalfWidth" | Iroha の半角文字。 |
| kanji = "Kanji" | 漢字。 |
| kanjiDigit = "KanjiDigit" | 漢字の数字。 |
| kanjiTraditional = "KanjiTraditional" | 従来の漢字。 |
| kanjiTraditional2 = "KanjiTraditional2" | 従来の漢字 (代替形式)。 |
| legal = "Legal" | 法的な番号付けスタイル。 |
| legalLZ = "LegalLZ" | 先頭にゼロが付いた法的な番号付けスタイル。 |
| lowercaseBulgarian = "LowercaseBulgarian" | 小文字のブルガリア語。 |
| lowercaseGreek = "LowercaseGreek" | 小文字のギリシャ語。 |
| lowercaseRussian = "LowercaseRussian" | 小文字のロシア語。 |
| lowercaseTurkish = "LowercaseTurkish" | 小文字のトルコ語。 |
| lowerLetter = "LowerLetter" | 小文字 (a、b、c、...)。 |
| lowerRoman = "LowerRoman" | 小文字のローマ数字 (i,ii, iii, ...). |
| none = "None" | 組み込みの数値スタイルはありません。 |
| numberInCircle = "NumberInCircle" | 円で囲まれた数値。 |
| ordinal = "Ordinal" | 序数 (1 番目、2 番目、3 番目、...)。 |
| ordinalText = "OrdinalText" | テキストとしての序数 (1 番目、2 番目、3 番目、...)。 |
| pictureBullet = "PictureBullet" | 図の箇条書き。 |
| simpChinNum1 = "SimpChinNum1" | 簡体字中国語 (スタイル 1)。 |
| simpChinNum2 = "SimpChinNum2" | 簡体字中国語 (スタイル 2)。 |
| simpChinNum3 = "SimpChinNum3" | 簡体字中国語 (スタイル 3)。 |
| simpChinNum4 = "SimpChinNum4" | 簡体字中国語番号 (スタイル 4)。 |
| thaiArabic = "ThaiArabic" | タイ語のアラビア語の文字。 |
| thaiCardinalText = "ThaiCardinalText" | タイ語のカーディナル テキスト。 |
| thaiLetter = "ThaiLetter" | タイ文字。 |
| tradChinNum1 = "TradChinNum1" | 繁体字中国語番号 (スタイル 1)。 |
| tradChinNum2 = "TradChinNum2" | 繁体字中国語番号 (スタイル 2)。 |
| tradChinNum3 = "TradChinNum3" | 繁体字中国語番号 (スタイル 3)。 |
| tradChinNum4 = "TradChinNum4" | 繁体字中国語番号 (スタイル 4)。 |
| uppercaseBulgarian = "UppercaseBulgarian" | 大文字ブルガリア語。 |
| uppercaseGreek = "UppercaseGreek" | 大文字ギリシャ語。 |
| uppercaseRussian = "UppercaseRussian" | 大文字のロシア語。 |
| uppercaseTurkish = "UppercaseTurkish" | 大文字のトルコ語。 |
| upperLetter = "UpperLetter" | 大文字 (A、B、C、...)。 |
| upperRoman = "UpperRoman" | 大文字のローマ数字 (I、II、III、...)。 |
| vietCardinalText = "VietCardinalText" | ベトナム語のカーディナル テキスト。 |
| zodiac1 = "Zodiac1" | Zodiac1 文字。 |
| zodiac2 = "Zodiac2" | Zodiac2 文字。 |
| zodiac3 = "Zodiac3" | Zodiac3 文字。 |