Aspose.Note for .Net
Document Class |
Represents an Aspose.Note document.
Inheritance Hierarchy
SystemObject Aspose.NoteNode
Aspose.NoteCompositeNodeBase
Aspose.NoteCompositeNodePage
Aspose.NoteDocument
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
Name | Description | |
---|---|---|
Document |
Initializes a new instance of the Document class.
Creates a blank OneNote document.
| |
Document(Stream) |
Initializes a new instance of the Document class.
Opens an existing OneNote document from a stream.
| |
Document(String) |
Initializes a new instance of the Document class.
Opens an existing OneNote document from a file.
| |
Document(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.
| |
Document(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
Name | Description | |
---|---|---|
AutomaticLayoutChangesDetectionEnabled |
Gets or sets a value indicating whether Aspose.Note performs detection of layout changes automatically.
Default value is true.
| |
Children |
Gets all child nodes of this node as an enumerable collection.
(Inherited from CompositeNodeT.) | |
Color |
Gets or sets the color.
| |
CreationTime |
Gets or sets the creation time.
| |
DisplayName |
Gets or sets the display name.
| |
Document |
Gets the document of the node.
(Inherited from Node.) | |
FileFormat |
Gets file format (OneNote 2010, OneNote Online).
| |
FirstChild |
Gets the first child node of this node.
(Inherited from CompositeNodeT.) | |
Guid |
Gets the object's globally unique id.
| |
IsComposite |
Checks whether the node is composite. If true then the node can have child nodes.
(Inherited from CompositeNodeT.) | |
LastChild |
Gets the last child node of this node.
(Inherited from CompositeNodeT.) | |
NextSibling |
Gets the next node at the same node tree level.
(Inherited from Node.) | |
NodeType |
Gets the node type.
(Inherited from Node.) | |
ParentNode |
Gets the parent node.
(Inherited from Node.) | |
PreviousSibling |
Gets the previous node at the same node tree level.
(Inherited from Node.) |
Methods
Name | Description | |
---|---|---|
Accept |
Accepts the visitor of the node.
(Overrides CompositeNodeTAccept(DocumentVisitor).) | |
AppendChild |
Adds the node to the end of the list of child nodes for this node.
(Inherited from CompositeNodeT.) | |
DetectLayoutChanges |
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.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChildNodes(NodeType) | Obsolete.
Get all child nodes by node type.
(Inherited from CompositeNodeT.) | |
GetChildNodesT1 |
Get all child nodes by the node type.
(Inherited from CompositeNodeT.) | |
GetEnumerator |
Returns an enumerator that iterates through child nodes of the CompositeNodeT.
(Inherited from CompositeNodeT.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPageHistory |
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.
| |
GetText |
Get all text from the node.
(Inherited from CompositeNodeT.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Prints the document using the default printer.
| ||
Print(PrintOptions) |
Prints the document using the default printer.
| |
RemoveChild |
Removes the child node.
(Inherited from CompositeNodeT.) | |
Save(Stream) |
Saves the OneNote document to a stream.
| |
Save(String) |
Saves the OneNote document to a file.
| |
Save(Stream, SaveFormat) |
Saves the OneNote document to a stream in the specified format.
| |
Save(Stream, SaveOptions) |
Saves the OneNote document to a stream using the specified save options.
| |
Save(String, SaveFormat) |
Saves the OneNote document to a file in the specified format.
| |
Save(String, SaveOptions) |
Saves the OneNote document to a file using the specified save options.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also