Class NotebookLoadOptions
Tên không gian: Aspose.Note Tổng hợp: Aspose.Note.dll (25.4.0)
Các tùy chọn được sử dụng để tải một notebook.
public class NotebookLoadOptions
{
public string AwsRegion { get; set; } = string.Empty;
public bool AutoDetectResources { get; set; } = true;
}
Inheritance
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Hiển thị làm thế nào để một máy tính xách tay mã hóa.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "test.onetoc2", new NotebookLoadOptions() { DeferredLoading = true });
notebook.LoadChildDocument(dataDir + "Aspose.one");
notebook.LoadChildDocument(dataDir + "Locked Pass1.one", new LoadOptions() { DocumentPassword = "pass" });
notebook.LoadChildDocument(dataDir + "Locked Pass2.one", new LoadOptions() { DocumentPassword = "pass2" });
Constructors
Tính năng NotebookLoadOptions()
public NotebookLoadOptions()
{
}
Properties
DeferredLoading
Nhận hoặc đặt một giá trị cho thấy liệu trẻ em có tài liệu hay khôngNó nên được tải rõ ràng sau đó.
public bool DeferredLoading
{
get;
set;
}
Giá trị bất động sản
Examples
Hiển thị làm thế nào để một máy tính xách tay mã hóa.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "test.onetoc2", new NotebookLoadOptions() { DeferredLoading = true });
notebook.LoadChildDocument(dataDir + "Aspose.one");
notebook.LoadChildDocument(dataDir + "Locked Pass1.one", new LoadOptions() { DocumentPassword = "pass" });
notebook.LoadChildDocument(dataDir + "Locked Pass2.one", new LoadOptions() { DocumentPassword = "pass2" });
Remarks
Giá trị mặc định là ’lầm’, vì vậy các tài liệu trẻ em sẽ được tải một cách nhầm lẫn.Value ’true’ là chỉ ra rằng người dùng nên gọi Aspose.Note.Nootbook.LoadChildDocument(System.String) hoặc Aspos.Thuyết minh.Thông tin LoadchildNotesbook(systems.string), cho mỗi nút trẻ sơ sinh của máy tính xách tay sau khi bản thân nó bị tải lên.Trong trường hợp giá trị ’thực tế’, tùy chọn Asposa.nootbooksLoodOptions.InstantLoading sẽ bị bỏ qua.
InstantLoading
Nhận hoặc đặt một giá trị cho thấy liệu trẻ em có tài liệu hay khôngphải được tải trong khi tài liệu mẹ đẻ đang tải.
public bool InstantLoading
{
get;
set;
}
Giá trị bất động sản
Remarks
Giá trị mặc định là ’lỗ hổng’, vì vậy các tài liệu trẻ em sẽ được tải “lẻo”, nghĩa là việc tải của họ nên được trì hoãn cho đến khi có quyền truy cập trực tiếp đến một đứa trẻ cụ thể.Giá ‘sự thật’ chỉ ra rằng tải chúng phải được thực hiện ngay lập tức.