Class OneSaveOptions
Class OneSaveOptions
Το όνομα: Aspose.Note.Saving Συγκέντρωση: Aspose.Note.dll (25.4.0)
Επιτρέπει να προσδιορίζετε πρόσθετες επιλογές κατά την αποθήκευση του εγγράφου σε μορφή OneNote.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
Κληρονομημένα μέλη
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
Δείχνει πώς να αποθηκεύσετε το έγγραφο με κρυπτογράφηση.
// 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" });
Δείχνει πώς να αποθηκεύσετε ένα έγγραφο χρησιμοποιώντας 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
Αποκτά ή τοποθετεί έναν κωδικό πρόσβασης για να κρυπτογραφήσει το περιεχόμενο του εγγράφου.
public string DocumentPassword { get; set; }
Αξία ιδιοκτησίας
Examples
Δείχνει πώς να αποθηκεύσετε το έγγραφο με κρυπτογράφηση.
// 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" });