Class LoadOptions

Class LoadOptions

İsim alanı : Aspose.Note Toplama: Aspose.Note.dll (25.4.0)

Bir belgeyi yüklemek için kullanılan seçenekler.

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 LoadOptions

mirasçı üyeleri

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Şifreli bir belgeyi nasıl yapacağınızı gösterin.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   LoadOptions loadOptions = new LoadOptions { DocumentPassword = "password" };
   Document doc = new Document(dataDir + "Sample1.one", loadOptions);

Şifreli bir dizüstü bilgisayara nasıl girilir.

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" });

Sayfanın tarihini nasıl bulacağınızı gösterin.

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

Yükleme seçenekleri ()

public LoadOptions()
   {
   }

Properties

DocumentPassword

Şifreli belge içeriği için bir şifre alır veya ayarlar. değer, belgenin şifreden korunmadığı durumlarda göz ardı edilir.

public string DocumentPassword
   {
      get;
      set;
   }

Mülkiyet Değer

string

Examples

Şifreli bir belgeyi nasıl yapacağınızı gösterin.

string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   LoadOptions loadOptions = new LoadOptions { DocumentPassword = "password" };
   Document doc = new Document(dataDir + "Sample1.one", loadOptions);

Şifreli bir dizüstü bilgisayara nasıl girilir.

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

Bir belge yükleyicisinin geçmişi görmezden gelmesi gerektiğini gösteren bir değer alır veya ayarlar.Bu seçeneği hafıza ve CPU kullanımını azaltmak için kullanın.Default değeri ‘gerçek’dir.

public bool LoadHistory
   {
      get;
      set;
   }

Mülkiyet Değer

bool

Examples

Sayfanın tarihini nasıl bulacağınızı gösterin.

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();
   }
 Türkçe