Public API Changes in Aspose.Note 1.4.0
Contents
[
Hide
Show
]This document describes changes to the Aspose.Note API from version 1.3 to 1.4, that may be of interest to module/application developers. It includes not only new and updated public methods, but also a description of any changes in the behavior behind the scenes in Aspose.Note.
New Approach to Retrieve OneNote Document Nodes
A new method for getting nodes by type was developed to provide a more flexible approach and avoid type casting. Old sample code (.NET, C#):
C#
1 // load OneNote document
2 Aspose.Note.Document oneFile = new Aspose.Note.Document(@"Test.one");
3
4 // retrieve RichText type nodes
5 IList<Node> richTextNodes = oneFile.GetChildNodes(Aspose.Note.NodeType.RichText);
6
7 // retrieve a particular node from the collection
8 Aspose.Note.RichText firstTextNode = (Aspose.Note.RichText)richTextNodes[0];
New sample code (.NET, C#):
C#
1 // load OneNote document
2 Aspose.Note.Document oneFile = new Aspose.Note.Document(@"Test.one");
3
4 // retrieve RichText type nodes
5 IList<RichText> richTextNodes = oneFile.GetChildNodes<RichText>();
6
7 // retrieve a particular node from the collection
8 Aspose.Note.RichText firstTextNode = richTextNodes[0];