Table of Contents List of Tables or Figures
1- Make sure that Aspose.PDF.ListSectionStyle.xml file exists in
Table of Contents
Example
<ListSection ListType="TableOfContents">
<Title Alignment="Center">
<Segment IsTrueTypeFontBold="true" FontSize="30">TableOfContents</Segment>
</Title>
<ListLevelFormat Level="1" LeftMargin="0">
<TextInfo IsTrueTypeFontBold="true" IsTrueTypeFontItalic="true"></TextInfo>
</ListLevelFormat>
<ListLevelFormat Level="2" LeftMargin="10">
<TextInfo IsUnderline="true" FontSize="10"></TextInfo>
</ListLevelFormat>
<ListLevelFormat Level="3" LeftMargin="20">
<TextInfo IsTrueTypeFontBold="true"></TextInfo>
</ListLevelFormat>
<ListLevelFormat Level="4" LeftMargin="30">
<TextInfo IsTrueTypeFontBold="true"></TextInfo>
</ListLevelFormat>
</ListSection>
List of Tables Example
<ListSection ListType="ListOfTables">
<Title>
<Segment IsTrueTypeFontBold="true" FontSize="30">ListOfTables</Segment>
</Title>
</ListSection>
List of Figures Example
<ListSection ListType="ListOfFigures">
<Title>
<Segment IsTrueTypeFontBold="true" FontSize="30">ListOfFigures</Segment>
</Title>
</ListSection>
2- Add report parameter ‘IsListSectionSupported’ and set the value to be True as the chapter ‘List Section’. 3- Add custom property for your report item you want to be listed in Table of Contents, List of Tables or Figures.
Please refer to List Section for further details, as specified in Aspose.PDF for .NET documentation.
Custom Property Name :IsInList Property Value :Boolean Custom Property Value : True or False
Which means that the current report item could be listed by index in the tables of contents, list of tables or figures.
Custom Property Name : Title Custom Property Type : String
Which means the title displayed in the table of contents, list of tables or figures.
Custom Property Name : ListLevel Custom Property Type : Integer
Which means the level of listed items displayed in the table of contents.