Class OneSaveOptions
Class OneSaveOptions
Numele spaţiului: Aspose.Note.Saving Asamblare: Aspose.Note.dll (25.4.0)
Permiteți să specificați opțiuni suplimentare atunci când salvați documentul în format OneNote.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
Membrii moștenitori
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
Află cum să salvați documentul cu criptare.
// 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" });
Află cum să salvați un document folosind 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
Obține sau stabilește o parolă pentru a criptiza conținutul documentului.
public string DocumentPassword { get; set; }
Valoarea proprietății
Examples
Află cum să salvați documentul cu criptare.
// 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" });