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

getGuide() public method

The guide; contains references to special sections of the book like colophon, glossary, etc.
public getGuide ( ) : Guide
return Guide
        public Guide getGuide()
        {
            return guide;
        }

Usage Example

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