Class NotebookLoadOptions
Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)
Options used to load a notebook.
public class NotebookLoadOptions
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
Shows how to an encrypted notebook.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_NoteBook(); var notebook = new Notebook(dataDir + “test.onetoc2”, new NotebookLoadOptions() { DeferredLoading = true });
notebook.LoadChildDocument(dataDir + "Aspose.one");
notebook.LoadChildDocument(dataDir + "Locked Pass1.one", new LoadOptions() { DocumentPassword = "pass" });
notebook.LoadChildDocument(dataDir + "Locked Pass2.one", new LoadOptions() { DocumentPassword = "pass2" });
## Constructors
### <a id="Aspose_Note_NotebookLoadOptions__ctor"></a> NotebookLoadOptions\(\)
```csharp
public NotebookLoadOptions()
Properties
DeferredLoading
Gets or sets a value indicating whether children documents should be loaded explicitly later.
public bool DeferredLoading { get; set; }
Property Value
Examples
Shows how to an encrypted notebook.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_NoteBook(); var notebook = new Notebook(dataDir + “test.onetoc2”, new NotebookLoadOptions() { DeferredLoading = true });
notebook.LoadChildDocument(dataDir + "Aspose.one");
notebook.LoadChildDocument(dataDir + "Locked Pass1.one", new LoadOptions() { DocumentPassword = "pass" });
notebook.LoadChildDocument(dataDir + "Locked Pass2.one", new LoadOptions() { DocumentPassword = "pass2" });
#### Remarks
Default value is <code>false</code>, so child documents will be loaded implicitly.
Value <code>true</code> is indicating that user should call Aspose.Note.Notebook.LoadChildDocument(System.String) or Aspose.Note.Notebook.LoadChildNotebook(System.String)
for each notebook's child node after notebook itself is loaded.
If value is <code>true</code>, Aspose.Note.NotebookLoadOptions.InstantLoading option will be ignored.
If notebook is loading from stream, the value is always <code>true</code> despite was explicitly set by user to <code>false</code>.
### <a id="Aspose_Note_NotebookLoadOptions_InstantLoading"></a> InstantLoading
Gets or sets a value indicating whether children documents
should be loaded while the parent document is loading.
```csharp
public bool InstantLoading { get; set; }
Property Value
Remarks
Default value is false
, so child documents will be loaded “lazily”,
i.e. their loading should be postponed until a direct access to specific child.
Value true
is indicating that their loading should be done immediately.