C# Класс AODL.Document.Content.Text.Indexes.TableOfContents

TableOfContent represent a table of contents.
Наследование: IContent, IContentContainer, IHtml
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetHtml ( ) : string

Return the content as Html string

GetTabStopStyle ( string leaderStyle, string leadingChar, double position ) : AODL.Document.Styles.TabStopStyleCollection

Gets the tab stop style.

InsertEntry ( string textEntry, int outLineLevel ) : void

Insert the given text as an Table of contents entry. e.g. You just insert a Headline 1. My headline to the document and want this text also as an Table of contents entry, so you can simply add the text using this method.

TableOfContents ( TextDocument textDocument, XmlNode tocNode ) : System

Initializes a new instance of the TableOfContents class.

TableOfContents ( TextDocument textDocument, string styleName, bool useHyperlinks, bool protectChanges, string textName ) : System

Initializes a new instance of the TableOfContents class.

Приватные методы

Метод Описание
Content_Inserted ( int index, object value ) : void

Content was inserted.

Content_Removed ( int index, object value ) : void

Content was removed.

CreateAttribute ( string name, string text, string prefix ) : void

Create a XmlAttribute for propertie XmlNode.

CreateIndexBody ( ) : void

Creates the index body node.

CreateTitlePargraph ( ) : void

Creates the title pargraph.

InsertContentStyle ( ) : void

Insert the content style nodes. These are 10 styles for each outline number one style. TODO: Section Style move to document common styles

NewXmlNode ( string stylename, bool protectChanges, string textName ) : void

News the XML node.

RegisterEvents ( ) : void

Registers the events.

SetOutlineStyle ( ) : void

Set the outline style.

Описание методов

GetHtml() публичный Метод

Return the content as Html string
public GetHtml ( ) : string
Результат string

GetTabStopStyle() публичный Метод

Gets the tab stop style.
public GetTabStopStyle ( string leaderStyle, string leadingChar, double position ) : AODL.Document.Styles.TabStopStyleCollection
leaderStyle string The leader style.
leadingChar string The leading char.
position double The position.
Результат AODL.Document.Styles.TabStopStyleCollection

InsertEntry() публичный Метод

Insert the given text as an Table of contents entry. e.g. You just insert a Headline 1. My headline to the document and want this text also as an Table of contents entry, so you can simply add the text using this method.
public InsertEntry ( string textEntry, int outLineLevel ) : void
textEntry string The text entry.
outLineLevel int The outline level possible 1-10.
Результат void

TableOfContents() публичный Метод

Initializes a new instance of the TableOfContents class.
public TableOfContents ( TextDocument textDocument, XmlNode tocNode ) : System
textDocument AODL.Document.TextDocuments.TextDocument The text document.
tocNode System.Xml.XmlNode The toc node.
Результат System

TableOfContents() публичный Метод

Initializes a new instance of the TableOfContents class.
public TableOfContents ( TextDocument textDocument, string styleName, bool useHyperlinks, bool protectChanges, string textName ) : System
textDocument AODL.Document.TextDocuments.TextDocument The text document.
styleName string Name of the style.
useHyperlinks bool if set to true [use hyperlinks].
protectChanges bool if set to true [protect changes].
textName string Title for the Table of content e.g. Table of Content
Результат System