C# 클래스 AODL.Document.Content.Text.Indexes.TableOfContents

TableOfContent represent a table of contents.
상속: IContent, IContentContainer, IHtml
파일 보기 프로젝트 열기: monsterlabs/HumanRightsTracker 1 사용 예제들

공개 메소드들

메소드 설명
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