public static void Run()
{
// ExStart:AddingList
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdfGenerator_UtilityFeatures();
// Instantiate Pdf instance by calling its empty constructor
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
// Create a list section
Aspose.Pdf.Generator.ListSection tocSection = new Aspose.Pdf.Generator.ListSection("Table Of Contents");
// Set its list type as table of of contents
tocSection.ListType = Aspose.Pdf.Generator.ListType.TableOfContents;
// Add the list section to the sections collection of the Pdf document
pdf1.Sections.Add(tocSection);
dataDir = dataDir + "AddingList_out.pdf";
// Save the Pdf
pdf1.Save(dataDir);
// ExEnd:AddingList
}
public static void DefineFormat()