Document Methods

The Document type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAccept
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 methodCode exampleDetectLayoutChanges
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 methodCode exampleGetChildNodesT1
Get all child nodes by the node type.
(Inherited from CompositeNodeT.)
Public methodGetEnumerator (Inherited from CompositeNodeT.)
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetPageHistory
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.)
Public methodStatic memberCode exampleIsEncrypted(Stream, Document)
Checks whether a document from a stream is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Public methodStatic memberCode exampleIsEncrypted(String, Document)
Checks whether a document from a file is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Public methodStatic memberCode exampleIsEncrypted(Stream, LoadOptions, Document)
Checks whether a document from a stream is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Public methodStatic memberCode exampleIsEncrypted(Stream, String, Document)
Checks whether a document from a stream is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Public methodStatic memberCode exampleIsEncrypted(String, LoadOptions, Document)
Checks whether a document from a file is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Public methodStatic memberCode exampleIsEncrypted(String, String, Document)
Checks whether a document from a file is encrypted. To check it we need to completely load this document. So this method can lead to performance penalty.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode examplePrint
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 methodCode exampleSave(String)
Saves the OneNote document to a file.
Public methodCode exampleSave(Stream, SaveFormat)
Saves the OneNote document to a stream in the specified format.
Public methodCode exampleSave(Stream, SaveOptions)
Saves the OneNote document to a stream using the specified save options.
Public methodCode exampleSave(String, SaveFormat)
Saves the OneNote document to a file in the specified format.
Public methodCode exampleSave(String, SaveOptions)
Saves the OneNote document to a file using the specified save options.
Public methodToString (Inherited from Object.)
See Also