public TableOfContents(TextDocument textDocument, XmlNode tocNode) { this.Document = textDocument; this.Node = tocNode; this.RegisterEvents(); }