OneSaveOptions.DocumentPassword

OneSaveOptions.DocumentPassword property

Gets or sets a password to encrypt the document content.

public string DocumentPassword { get; set; }

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" });

See Also