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

TableOfContent represent a table of contents.
Inheritance: IContent, IContentContainer, IHtml
Datei anzeigen Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string

GetTabStopStyle() public method

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.
return AODL.Document.Styles.TabStopStyleCollection

InsertEntry() public method

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.
return void

TableOfContents() public method

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.
return System

TableOfContents() public method

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
return System