Class OneSaveOptions
Class OneSaveOptions
Der Name: Aspose.Note.Saving Zusammensetzung: Aspose.Note.dll (25.4.0)
Erlaubt, zusätzliche Optionen angeben, wenn ein Dokument im OneNote-Format gespeichert wird.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
Vererbte Mitglieder
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
Zeigt, wie man Dokument mit Verschlüsselung speichert.
// 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" });
Zeigt, wie Sie ein Dokument mit OneSaveOptions speichern können.
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
Er bekommt oder setzt ein Passwort, um den Inhalt des Dokuments zu verschlüsseln.
public string DocumentPassword { get; set; }
Eigentumswert
Examples
Zeigt, wie man Dokument mit Verschlüsselung speichert.
// 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" });