Class LoadOptions

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 LoadOptions

相続人

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

不動産価値

string

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

不動産価値

bool

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();
   }
 日本語