Winnovative Logo

TableOfContentsOptions Class

Winnovative Client for .NET Core
This class contains the necessary properties to control the automatic creation of a table of contents in a PDF document
Inheritance Hierarchy

SystemObject
  WinnovativeClientTableOfContentsOptions
    WinnovativeClientPdfDocumentTableOfContents

Namespace:  WinnovativeClient
Assembly:  WinnovativeClient_NetCore (in WinnovativeClient_NetCore.dll) Version: 17.0.0
Syntax

public class TableOfContentsOptions

The TableOfContentsOptions type exposes the following members.

Properties

  NameDescription
Public propertyAutoTocItemsEnabled
A flag indicating if the automatic creation of a table of contents items for the H1 to H6 HTML elements is enabled or not. By default this property is false
Public propertyBackColor
The background color of the PDF pages on which the table of contents is created
Public propertyGlobalStyle
Gets or sets the global CSS style of the table of contents. For example, setting a "body{background-color:blue}" will set a blue color for the table of contents background
Public propertyMaxTocItemTitleLength
Gets or sets the maximum accepted length of the table of contents item title. If a positive value is set for this property the table of contents item title will be truncated if necessary. By default the table of contents item title will not be truncated
Public propertyPageCount
Returns the number of pages on which the table of contents is created and together with the StartPageIndex helps to localize the position of the table of contents inside the generated PDF document. This property is set by converter after the document with table of contents was generated
Public propertyPageNumberingStartIndex
Gets or sets the start index for page numbering in the table of contents. This property can be correlated with the PageNumberingStartIndex property of header and footer
Public propertyPageNumbersEnabled
A flag indicating if the table of contents items will have page numbers besides the title. By default this property is true
Public propertyShowFooter
A flag indicating if the document footer is displayed on the table of content pages or not
Public propertyShowHeader
A flag indicating if the document header is displayed on the table of content pages or not
Public propertyStartPageIndex
Returns the index in PDF document of the page where the table of contents starts. This property is set by converter after the document with table of contents was generated
Public propertyStartPageNumbersAfterTOC
A flag indicating if the page numbers start after the table of contents. This property also changes the page numbering both in document header and footer and in the table of contents
Public propertyTitle
Gets or sets the table of contents title
Public propertyTitleStyle
Gets or sets the global CSS style of the table of contents title. When this property is set with a value, the default style of the title is replaced with the style given by this property. For example, setting a "font-family: 'Times New Roman'; font-size:30px; font-weight:bold; color:red" style will make the converter to use the 'Times New Roman' bold font of 30 pixels and the blue color to write the table of contents title
Public propertyWidth
Gets or sets the table of contents width in pixels. The table can be resized if necessary to fit the PDF page width. If the property is 0 then the converter will automatically set the width of the table of contents
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetItemStyle
Sets the style of a table of contents item on a given level. The item level is a number from 1 to 6
Public methodSetPageNumberStyle
Sets the style of the page page numbers on a given level in the table of contents. The page number level is a number from 1 to 6
Public methodToString (Inherited from Object.)
Top
See Also

Reference