Class OneSaveOptions
Class OneSaveOptions
Navne til: Aspose.Note.Saving Sammensætning: Aspose.Note.dll (25.4.0)
Det giver dig mulighed for at angive yderligere muligheder, når du gemmer dokumentet i OneNote-format.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
De arvede medlemmer
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
Se, hvordan man gemmer dokumentet med kryptering.
// 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" });
Se, hvordan du gemmer et dokument ved hjælp af 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
Giver eller indsætter et adgangskode til at kryptere dokumentindholdet.
public string DocumentPassword { get; set; }
Ejendomsværdi
Examples
Se, hvordan man gemmer dokumentet med kryptering.
// 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" });