Class OneSaveOptions
Class OneSaveOptions
İsim alanı : Aspose.Note.Saving Toplama: Aspose.Note.dll (25.4.0)
Belgeyi OneNote biçiminde kaydetmek için ek seçenekler belirlemek için izin verir.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
mirasçı üyeleri
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
Şifreleme ile belgeyi nasıl kaydeteceğinizi gösterin.
// 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 kullanarak bir belgeyi nasıl kaydeteceğinizi gösterin.
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
Belge içeriğini şifrelemek için bir şifre alır veya ayarlar.
public string DocumentPassword { get; set; }
Mülkiyet Değer
Examples
Şifreleme ile belgeyi nasıl kaydeteceğinizi gösterin.
// 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" });