Class OneSaveOptions

Class OneSaveOptions

Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (26.3.0)

Allows to specify additional options when saving document to OneNote format.

public sealed class OneSaveOptions : SaveOptions

Inheritance

object SaveOptions OneSaveOptions

Inherited Members

SaveOptions.SaveFormat , SaveOptions.FontsSubsystem , SaveOptions.PageIndex , SaveOptions.PageCount , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Shows how to save document with encryption.

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();

Document document = new Document();
document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });

Shows how to save a document using OneSaveOptions.

string inputFile = "Sample1.one";
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string outputFile = "SaveDocToOneNoteFormatUsingOneSaveOptions_out.one";

Document document = new Document(dataDir + inputFile);

document.Save(dataDir + outputFile, new OneSaveOptions());

Constructors

OneSaveOptions()

public OneSaveOptions()

Properties

DocumentPassword

Gets or sets a password to encrypt the document content.

public string DocumentPassword { get; set; }

Property Value

string

Examples

Shows how to save document with encryption.

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_NoteBook();

Document document = new Document();
document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });
 English