Document Class

Aspose.Note for .NET API

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: 18.1
Syntax
public class Document : CompositeNode<Page>, 
	INotebookChildNode
Public Class Document
	Inherits CompositeNode(Of Page)
	Implements INotebookChildNode
public ref class Document : public CompositeNode<Page^>, 
	INotebookChildNode
type Document =  
    class
        inherit CompositeNode<Page>
        interface INotebookChildNode
    end

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.
Top
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.)
Top
Methods
  NameDescription
Public methodAccept
Accepts the visitor of the node.
(Overrides CompositeNodeTAccept(DocumentVisitor).)
Public methodAppendChild
Adds the node to the end of the list of child nodes for this 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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
Returns an enumerator that iterates through child nodes of the CompositeNodeT.
(Inherited from CompositeNodeT.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(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
Get all text from the node.
(Inherited from CompositeNodeT.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also