Document Class

Represents an Aspose.Note document.
Inheritance Hierarchy
SystemObject
  Aspose.NoteNode
    Aspose.NoteCompositeNodeBase
      Aspose.NoteCompositeNodePage
        Aspose.NoteDocument

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 20.3
Syntax
public class Document : CompositeNode<Page>, 
	INotebookChildNode

The Document type exposes the following members.

Constructors
  NameDescription
Public methodDocument
Initializes a new instance of the Document class. Creates a blank OneNote document.
Public methodDocument(Stream)
Initializes a new instance of the Document class. Opens an existing OneNote document from a stream.
Public methodDocument(String)
Initializes a new instance of the Document class. Opens an existing OneNote document from a file.
Public methodDocument(Stream, LoadOptions)
Initializes a new instance of the Document class. Opens an existing OneNote document from a stream. Allows to specify additional options such as an encryption password.
Public methodDocument(String, LoadOptions)
Initializes a new instance of the Document class. Opens an existing OneNote document from a file. Allows to specify additional options such as an encryption password.
Properties
  NameDescription
Public propertyAutomaticLayoutChangesDetectionEnabled
Gets or sets a value indicating whether Aspose.Note performs detection of layout changes automatically. Default value is true.
Public propertyChildren
Gets all child nodes of this node as an enumerable collection.
(Inherited from CompositeNodeT.)
Public propertyColor
Gets or sets the color.
Public propertyCreationTime
Gets or sets the creation time.
Public propertyDisplayName
Gets or sets the display name.
Public propertyDocument
Gets the document of the node.
(Inherited from Node.)
Public propertyFileFormat
Gets file format (OneNote 2010, OneNote Online).
Public propertyFirstChild
Gets the first child node of this node.
(Inherited from CompositeNodeT.)
Public propertyGuid
Gets the object's globally unique id.
Public propertyIsComposite
Checks whether the node is composite. If true then the node can have child nodes.
(Inherited from CompositeNodeT.)
Public propertyLastChild
Gets the last child node of this node.
(Inherited from CompositeNodeT.)
Public propertyNextSibling
Gets the next node at the same node tree level.
(Inherited from Node.)
Public propertyNodeType
Gets the node type.
(Inherited from Node.)
Public propertyParentNode
Gets the parent node.
(Inherited from Node.)
Public propertyPreviousSibling
Gets the previous node at the same node tree level.
(Inherited from Node.)
Methods
  NameDescription
Public methodAccept
Accepts the visitor of the node.
(Overrides CompositeNodeTAccept(DocumentVisitor).)
Public methodAppendChildFirst
Adds the node to the front of the list of child nodes for this node.
(Inherited from CompositeNodeT.)
Public methodAppendChildLast
Adds the node to the end of the list of child nodes for this node.
(Inherited from CompositeNodeT.)
Protected methodCheckDocument
Checks Document field of a new node
(Inherited from CompositeNodeT.)
Public methodDetectLayoutChanges
Detects all changes made to the document layout since the previous DetectLayoutChanges call. In case AutomaticLayoutChangesDetectionEnabled set to true, used automatically in the beginning of document export.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetChildNodes(NodeType) Obsolete.
Get all child nodes by node type.
(Inherited from CompositeNodeT.)
Public methodGetChildNodesT1
Get all child nodes by the node type.
(Inherited from CompositeNodeT.)
Public methodGetEnumerator (Inherited from CompositeNodeT.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetPageHistory
Gets the PageHistory which contains full history for each page presented in a document (the earliest at index 0). The current page revision can be accessed as Current and contained separately from collection of historical versions.
Public methodGetText Obsolete.
Get all text from the node.
(Inherited from CompositeNodeT.)
Public methodGetType (Inherited from Object.)
Public methodInsertChild
Inserts the node to the specified position in the list of child nodes for this node.
(Inherited from CompositeNodeT.)
Public methodInsertChildrenRange(Int32, IEnumerableT)
Inserts the node's sequence starting from specified position in the list of child nodes for this node.
(Inherited from CompositeNodeT.)
Public methodInsertChildrenRange(Int32, T)
Inserts the node's sequence starting from specified position in the list of child nodes for this node.
(Inherited from CompositeNodeT.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPrint
Prints the document using the default printer.
Public methodPrint(PrintOptions)
Prints the document using the default printer.
Public methodRemoveChild
Removes the child node.
(Inherited from CompositeNodeT.)
Public methodSave(Stream)
Saves the OneNote document to a stream.
Public methodSave(String)
Saves the OneNote document to a file.
Public methodSave(Stream, SaveFormat)
Saves the OneNote document to a stream in the specified format.
Public methodSave(Stream, SaveOptions)
Saves the OneNote document to a stream using the specified save options.
Public methodSave(String, SaveFormat)
Saves the OneNote document to a file in the specified format.
Public methodSave(String, SaveOptions)
Saves the OneNote document to a file using the specified save options.
Public methodToString (Inherited from Object.)
See Also