C# Class AODL.Document.Content.Text.Indexes.TableOfContentsIndexTemplate

TableOfContentsIndexTemplate represent the table of content index template. It is used to set the index entries and their order within a table of content. A common order would be: Chapter Text TabStop PageNumber
显示文件 Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
InitStandardTemplate ( ) : void

Inits the standard template.

InsertIndexEntry ( IndexEntryTypes indexEntryType ) : void

Insert a index entry to the template. You can define the order through the order you insert the index entry types.

TableOfContentsIndexTemplate ( TableOfContents tableOfContents, int outlineLevel, string styleName ) : System

Initializes a new instance of the TableOfContentsIndexTemplate class.

Private Methods

Method Description
AddIndexEntryNode ( string nodeName, IndexEntryTypes indexEntryType ) : void

Add the index entry node, with given type

NewXmlNode ( int outlineLevel, string styleName ) : void

Create the XmlNode which represent this object.

Method Details

InitStandardTemplate() public method

Inits the standard template.
public InitStandardTemplate ( ) : void
return void

InsertIndexEntry() public method

Insert a index entry to the template. You can define the order through the order you insert the index entry types.
public InsertIndexEntry ( IndexEntryTypes indexEntryType ) : void
indexEntryType IndexEntryTypes Type of the index entry.
return void

TableOfContentsIndexTemplate() public method

Initializes a new instance of the TableOfContentsIndexTemplate class.
public TableOfContentsIndexTemplate ( TableOfContents tableOfContents, int outlineLevel, string styleName ) : System
tableOfContents TableOfContents Content of the table of.
outlineLevel int For which outline level this template should be used.
styleName string Style name.
return System