Class LoadOptions
نام ها : Aspose.Note جمع آوری: Aspose.Note.dll (25.4.0)
گزینه های مورد استفاده برای بارگذاری یک سند
public class LoadOptions
{
public bool KeepTextOnly;
public bool KeepTextAndTables;
public bool KeepTableRows;
public bool KeepLastH1;
public bool KeepLastH2;
public bool KeepLastH3;
public bool KeepLastH4;
public bool KeepLastH5;
public bool KeepLastH6;
public bool KeepLastParaGraph;
}
Inheritance
اعضای ارثی
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
نشان می دهد که چگونه به یک سند رمزگذاری شده.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
LoadOptions loadOptions = new LoadOptions { DocumentPassword = "password" };
Document doc = new Document(dataDir + "Sample1.one", loadOptions);
نشان می دهد چگونه به یک لپ تاپ رمزگذاری شده.
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" });
نشان دهید چگونه تاریخچه صفحه را بدست آورید.
string dataDir = RunExamples.GetDataDir_Pages();
Document document = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });
Page firstPage = document.FirstChild;
foreach (Page pageRevision in document.GetPageHistory(firstPage))
{
Console.WriteLine("LastModifiedTime: {0}", pageRevision.LastModifiedTime);
Console.WriteLine("CreationTime: {0}", pageRevision.CreationTime);
Console.WriteLine("Title: {0}", pageRevision.Title);
Console.WriteLine("Level: {0}", pageRevision.Level);
Console.WriteLine("Author: {0}", pageRevision.Author);
Console.WriteLine();
}
Constructors
دانلود گزینه ها()
public LoadOptions()
{
}
Properties
DocumentPassword
دریافت یا تنظیم یک رمز عبور برای محتوای اسناد رمزگذاری شده.قیمت نادیده گرفته می شود در صورتی که این سند از کلمه عبور محافظت نشده است.
public string DocumentPassword
{
get;
set;
}
ارزش املاک
Examples
نشان می دهد که چگونه به یک سند رمزگذاری شده.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
LoadOptions loadOptions = new LoadOptions { DocumentPassword = "password" };
Document doc = new Document(dataDir + "Sample1.one", loadOptions);
نشان می دهد چگونه به یک لپ تاپ رمزگذاری شده.
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" });
LoadHistory
دریافت یا تنظیم یک مقدار نشان می دهد که آیا یک بارگذاری اسناد باید تاریخ را نادیده بگیرد.استفاده از این گزینه برای کاهش حافظه و استفاده از CPU.قیمت پیش فرض “واقعی” است.
public bool LoadHistory
{
get;
set;
}
ارزش املاک
Examples
نشان دهید چگونه تاریخچه صفحه را بدست آورید.
string dataDir = RunExamples.GetDataDir_Pages();
Document document = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });
Page firstPage = document.FirstChild;
foreach (Page pageRevision in document.GetPageHistory(firstPage))
{
Console.WriteLine("LastModifiedTime: {0}", pageRevision.LastModifiedTime);
Console.WriteLine("CreationTime: {0}", pageRevision.CreationTime);
Console.WriteLine("Title: {0}", pageRevision.Title);
Console.WriteLine("Level: {0}", pageRevision.Level);
Console.WriteLine("Author: {0}", pageRevision.Author);
Console.WriteLine();
}