AODL.Document.Content.Text.Indexes.TableOfContentsIndexTemplate.InitStandardTemplate C# (CSharp) Method

InitStandardTemplate() public method

Inits the standard template.
public InitStandardTemplate ( ) : void
return void
		public void InitStandardTemplate()
		{
			if (this.TableOfContents.UseHyperlinks)
				this.InsertIndexEntry(IndexEntryTypes.HyperlinkStart);
			
			this.InsertIndexEntry(IndexEntryTypes.Chapter);
			this.InsertIndexEntry(IndexEntryTypes.Text);				

			if (this.TableOfContents.UseHyperlinks)
				this.InsertIndexEntry(IndexEntryTypes.HyperlinkEnd);

			this.InsertIndexEntry(IndexEntryTypes.TabStop);		
			this.InsertIndexEntry(IndexEntryTypes.PageNumber);
		}

Usage Example

Beispiel #1
0
        /// <summary>
        /// Init the standard style source template styles.
        /// </summary>
        public void InitStandardTableOfContentStyle()
        {
            for (int i = 1; i <= 10; i++)
            {
                TableOfContentsIndexTemplate tableOfContentsIndexTemplate =
                    new TableOfContentsIndexTemplate(
                        TableOfContents,
                        i,
                        "Contents_20_" + i);

                tableOfContentsIndexTemplate.InitStandardTemplate();
                Node.Add(tableOfContentsIndexTemplate.Node);
                TableOfContentsIndexTemplateCollection.Add(
                    tableOfContentsIndexTemplate);
            }
        }
All Usage Examples Of AODL.Document.Content.Text.Indexes.TableOfContentsIndexTemplate::InitStandardTemplate