nl.siegmann.epublib.domain.Book.getTableOfContents C# (CSharp) Method

getTableOfContents() public method

The Table of Contents of the book.
public getTableOfContents ( ) : TableOfContents
return TableOfContents
        public TableOfContents getTableOfContents()
        {
            return tableOfContents;
        }

Usage Example

Exemplo n.º 1
0
 public void testGetContents1()
 {
     Book book = new Book();
     Resource resource1 = new Resource("id1", System.Text.Encoding.UTF8.GetBytes("Hello, world !"), "chapter1.html", MediatypeService.XHTML);
     book.getSpine().addResource(resource1);
     book.getTableOfContents().addSection(resource1, "My first chapter");
     Assert.AreEqual(1, book.getContents().Count);
 }
All Usage Examples Of nl.siegmann.epublib.domain.Book::getTableOfContents