Working with Headings

Contents
[ ]

Apply Numbering Style in Heading

Headings are the important parts of any document. Writers always try to make headings more prominent and meaningful to its readers. If there are more than one headings in a document, a writer has several options to organize these headings. One of the most common approach to organize headings is to write headings in Numbering Style.

Aspose.PDF for .NET offers many pre-defined numbering styles. These pre-defined numbering styles are stored in an enumeration, NumberingStyle. The pre-defined values of NumberingStyle enumeration and their descriptions are given below:

Heading TypesDescription
NumeralsArabicArab type,for example, 1,1.1,…
NumeralsRomanUppercaseRoman upper type, for example, I,I.II, …
NumeralsRomanLowercaseRoman lower type, for example, i,i.ii, …
LettersUppercaseEnglish upper type, for example, A,A.B, …
LettersLowercaseEnglish lower type, for example, a,a.b, …
The Style property of Aspose.PDF.Heading class is used to set the numbering styles of the headings.
Figure: Pre-defined numbering styles
The source code, to obtain the output shown in the above figure, is given below in the example.