Class OneSaveOptions
Class OneSaveOptions
Tên không gian: Aspose.Note.Saving Tổng hợp: Aspose.Note.dll (25.4.0)
Cho phép xác định các tùy chọn bổ sung khi lưu tài liệu vào định dạng OneNote.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
Thành viên thừa kế
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
Hiển thị cách lưu tài liệu với mã hóa.
// 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" });
Hiển thị cách lưu tài liệu bằng cách sử dụng 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
Nhận hoặc đặt mật khẩu để mã hóa nội dung tài liệu.
public string DocumentPassword { get; set; }
Giá trị bất động sản
Examples
Hiển thị cách lưu tài liệu với mã hóa.
// 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" });