Click or drag to resize

NumberStyle Enumeration

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
Syntax
public enum NumberStyle
Members
  Member nameValueDescription
Arabic0 Arabic numbering (1, 2, 3, ...)
UppercaseRoman1 Upper case Roman (I, II, III, ...)
LowercaseRoman2 Lower case Roman (i, ii, iii, ...)
UppercaseLetter3 Upper case Letter (A, B, C, ...)
LowercaseLetter4 Lower case letter (a, b, c, ...)
Ordinal5 Ordinal (1st, 2nd, 3rd, ...)
Number6 Numbered (One, Two, Three, ...)
OrdinalText7 Ordinal (text) (First, Second, Third, ...)
Hex8 Hexadecimal: 8, 9, A, B, C, D, E, F, 10, 11, 12
ChicagoManual9 Chicago Manual of Style: *, †, †
Kanji10 Ideograph-digital
KanjiDigit11 Japanese counting
AiueoHalfWidth12 Aiueo
IrohaHalfWidth13 Iroha
ArabicFullWidth14 Full-width Arabic: 1, 2, 3, 4
ArabicHalfWidth15 Half-width Arabic: 1, 2, 3, 4
KanjiTraditional16 Japanese legal
KanjiTraditional217 Japanese digital ten thousand
NumberInCircle18 Enclosed circles
DecimalFullWidth19 Decimal full width: 1, 2, 3, 4
Aiueo20 Aiueo full width
Iroha21 Iroha full width
LeadingZero22 Leading Zero (01, 02,..., 09, 10, 11,..., 99, 100, 101,...)
Bullet23 Bullet (check the character code in the text)
Ganada24 Korean Ganada
Chosung25 Korea Chosung
GB126 Enclosed full stop
GB227 Enclosed parenthesis
GB328 Enclosed circle Chinese
GB429 Ideograph enclosed circle
Zodiac130 Ideograph traditional
Zodiac231 Ideograph Zodiac
Zodiac332 Ideograph Zodiac traditional
TradChinNum133 Taiwanese counting
TradChinNum234 Ideograph legal traditional
TradChinNum335 Taiwanese counting thousand
TradChinNum436 Taiwanese digital
SimpChinNum137 Chinese counting
SimpChinNum238 Chinese legal simplified
SimpChinNum339 Chinese counting thousand
SimpChinNum440 Chinese (not implemented)
HanjaRead41 Korean digital
HanjaReadDigit42 Korean counting
Hangul43 Korea legal
Hanja44 Korea digital2
Hebrew145 Hebrew-1
Arabic146 Arabic alpha
Hebrew247 Hebrew-2
Arabic248 Arabic abjad
HindiLetter149 Hindi vowels
HindiLetter250 Hindi consonants
HindiArabic51 Hindi numbers
HindiCardinalText52 Hindi descriptive (cardinals)
ThaiLetter53 Thai letters
ThaiArabic54 Thai numbers
ThaiCardinalText55 Thai descriptive (cardinals)
VietCardinalText56 Vietnamese descriptive (cardinals)
NumberInDash57 Page number format: - 1 -, - 2 -, - 3 -, - 4 -
LowercaseRussian58 Lowercase Russian alphabet
UppercaseRussian59 Uppercase Russian alphabet
None255 No bullet or number.
Custom65280 Custom number format. It is supported by DOCX format only.
Examples
Shows how to apply custom list formatting to paragraphs when using DocumentBuilder.
Document doc = new Document();

// Create a list based on one of the Microsoft Word list templates
List list = doc.Lists.Add(ListTemplate.NumberDefault);

// Completely customize one list level
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;

// Completely customize yet another list level
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"; // A bullet that looks like some sort of a star
level2.TrailingCharacter = ListTrailingCharacter.Space;
level2.NumberPosition = 144;

// Now add some text that uses the list that we created
// It does not matter when to customize the list - before or after adding the paragraphs
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