Specifies the number style for a list, footnotes and endnotes, page numbers.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
SyntaxPublic Enumeration NumberStyle
public enum class NumberStyle
Members
| Member name | Value | Description |
---|
| Arabic | 0 |
Arabic numbering (1, 2, 3, ...)
|
| UppercaseRoman | 1 |
Upper case Roman (I, II, III, ...)
|
| LowercaseRoman | 2 |
Lower case Roman (i, ii, iii, ...)
|
| UppercaseLetter | 3 |
Upper case Letter (A, B, C, ...)
|
| LowercaseLetter | 4 |
Lower case letter (a, b, c, ...)
|
| Ordinal | 5 |
Ordinal (1st, 2nd, 3rd, ...)
|
| Number | 6 |
Numbered (One, Two, Three, ...)
|
| OrdinalText | 7 |
Ordinal (text) (First, Second, Third, ...)
|
| Hex | 8 |
Hexadecimal: 8, 9, A, B, C, D, E, F, 10, 11, 12
|
| ChicagoManual | 9 |
Chicago Manual of Style: *, †, †
|
| Kanji | 10 |
Ideograph-digital
|
| KanjiDigit | 11 |
Japanese counting
|
| AiueoHalfWidth | 12 |
Aiueo
|
| IrohaHalfWidth | 13 |
Iroha
|
| ArabicFullWidth | 14 |
Full-width Arabic: 1, 2, 3, 4
|
| ArabicHalfWidth | 15 |
Half-width Arabic: 1, 2, 3, 4
|
| KanjiTraditional | 16 |
Japanese legal
|
| KanjiTraditional2 | 17 |
Japanese digital ten thousand
|
| NumberInCircle | 18 |
Enclosed circles
|
| DecimalFullWidth | 19 |
Decimal full width: 1, 2, 3, 4
|
| Aiueo | 20 |
Aiueo full width
|
| Iroha | 21 |
Iroha full width
|
| LeadingZero | 22 |
Leading Zero (01, 02,..., 09, 10, 11,..., 99, 100, 101,...)
|
| Bullet | 23 |
Bullet (check the character code in the text)
|
| Ganada | 24 |
Korean Ganada
|
| Chosung | 25 |
Korea Chosung
|
| GB1 | 26 |
Enclosed full stop
|
| GB2 | 27 |
Enclosed parenthesis
|
| GB3 | 28 |
Enclosed circle Chinese
|
| GB4 | 29 |
Ideograph enclosed circle
|
| Zodiac1 | 30 |
Ideograph traditional
|
| Zodiac2 | 31 |
Ideograph Zodiac
|
| Zodiac3 | 32 |
Ideograph Zodiac traditional
|
| TradChinNum1 | 33 |
Taiwanese counting
|
| TradChinNum2 | 34 |
Ideograph legal traditional
|
| TradChinNum3 | 35 |
Taiwanese counting thousand
|
| TradChinNum4 | 36 |
Taiwanese digital
|
| SimpChinNum1 | 37 |
Chinese counting
|
| SimpChinNum2 | 38 |
Chinese legal simplified
|
| SimpChinNum3 | 39 |
Chinese counting thousand
|
| SimpChinNum4 | 40 |
Chinese (not implemented)
|
| HanjaRead | 41 |
Korean digital
|
| HanjaReadDigit | 42 |
Korean counting
|
| Hangul | 43 |
Korea legal
|
| Hanja | 44 |
Korea digital2
|
| Hebrew1 | 45 |
Hebrew-1
|
| Arabic1 | 46 |
Arabic alpha
|
| Hebrew2 | 47 |
Hebrew-2
|
| Arabic2 | 48 |
Arabic abjad
|
| HindiLetter1 | 49 |
Hindi vowels
|
| HindiLetter2 | 50 |
Hindi consonants
|
| HindiArabic | 51 |
Hindi numbers
|
| HindiCardinalText | 52 |
Hindi descriptive (cardinals)
|
| ThaiLetter | 53 |
Thai letters
|
| ThaiArabic | 54 |
Thai numbers
|
| ThaiCardinalText | 55 |
Thai descriptive (cardinals)
|
| VietCardinalText | 56 |
Vietnamese descriptive (cardinals)
|
| NumberInDash | 57 |
Page number format: - 1 -, - 2 -, - 3 -, - 4 -
|
| LowercaseRussian | 58 |
Lowercase Russian alphabet
|
| UppercaseRussian | 59 |
Uppercase Russian alphabet
|
| None | 255 |
No bullet or number.
|
| Custom | 65280 |
Custom number format. It is supported by DOCX format only.
|
ExamplesShows how to apply custom list formatting to paragraphs when using DocumentBuilder.
Document doc = new Document();
List list = doc.Lists.Add(ListTemplate.NumberDefault);
ListLevel level1 = list.ListLevels[0];
level1.Font.Color = Color.Red;
level1.Font.Size = 24;
level1.NumberStyle = NumberStyle.OrdinalText;
level1.StartAt = 21;
level1.NumberFormat = "\x0000";
level1.NumberPosition = -36;
level1.TextPosition = 144;
level1.TabPosition = 144;
ListLevel level2 = list.ListLevels[1];
level2.Alignment = ListLevelAlignment.Right;
level2.NumberStyle = NumberStyle.Bullet;
level2.Font.Name = "Wingdings";
level2.Font.Color = Color.Blue;
level2.Font.Size = 24;
level2.NumberFormat = "\xf0af";
level2.TrailingCharacter = ListTrailingCharacter.Space;
level2.NumberPosition = 144;
DocumentBuilder builder = new DocumentBuilder(doc);
builder.ListFormat.List = list;
builder.Writeln("The quick brown fox...");
builder.Writeln("The quick brown fox...");
builder.ListFormat.ListIndent();
builder.Writeln("jumped over the lazy dog.");
builder.Writeln("jumped over the lazy dog.");
builder.ListFormat.ListOutdent();
builder.Writeln("The quick brown fox...");
builder.ListFormat.RemoveNumbers();
builder.Document.Save(ArtifactsDir + "Lists.CreateCustomList.doc");
See Also