Class NotebookSaveOptions

Class NotebookSaveOptions

ชื่อพื้นที่: Aspose.Note.Saving การประกอบ: Aspose.Note.dll (25.4.0)

คลาสพื้นฐานแบบดั้งเดิมซึ่งเป็นตัวเลือกการบันทึกแล็ปท็อปสําหรับรูปแบบเฉพาะ

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

อนุญาโตตุลาการ

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

Examples

แสดงวิธีการบันทึก notebook flattened ในรูปแบบ PDF

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

                                                              // Load a OneNote Notebook
                                                              var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

แสดงวิธีการบันทึกหนังสือเล่มในรูปแบบ PDF ด้วยตัวเลือกที่ระบุ

// The path to the documents directory.
                                                                           string dataDir = RunExamples.GetDataDir_NoteBook();

                                                                           // Load a OneNote Notebook
                                                                           var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                                           var notebookSaveOptions = new NotebookPdfSaveOptions();

                                                                           var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                                           documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();

                                                                           dataDir = dataDir + "ConvertToPDF_out.pdf";

                                                                           // Save the Notebook
                                                                           notebook.Save(dataDir, notebookSaveOptions);

แสดงให้เห็นวิธีการบันทึกแล็ปท็อปโฟลเดอร์เป็นภาพ

// The path to the documents directory.
                                                         string dataDir = RunExamples.GetDataDir_NoteBook();

                                                         // Load a OneNote Notebook
                                                         var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");

                                                         var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

                                                         // Save the Notebook
                                                         notebook.Save(dataDir, notebookSaveOptions);

Constructors

NotebookSaveOptions()

protected NotebookSaveOptions()

Properties

DeferredSaving

รับหรือตั้งค่าที่แสดงให้เห็นว่าเด็กเอกสารมันควรจะถูกบันทึกอย่างชัดเจน

public bool DeferredSaving { get; set; }

คุณสมบัติมูลค่า

bool

Remarks

หมายเลขค่าเริ่มต้นคือ ‘ซื่อสัตย์’ ดังนั้นเอกสารเด็กจะถูกบันทึกโดยฉลาก.มูลค่า ‘จริง’ คือการแสดงให้เห็นว่าผู้ใช้ควรเก็บรหัสเด็กของแต่ละแล็ปท็อปอย่างชัดเจน.หากแลนปต์จะบันเทิงเพื่อการไหลค่านั้นจะ “จริง” แม้ว่าจะมีการตั้งค่าโดยผู้ใช้งานโดยอ้างอิงว่า ‘ผิดพลาด’

Flatten

รับหรือตั้งค่าหมายเหตุว่าการบันทึกไดเรกท็อปสําหรับเด็กจะถูกเก็บไว้ได้หรือไม่

public bool Flatten { get; set; }

คุณสมบัติมูลค่า

bool

Examples

แสดงวิธีการบันทึก notebook flattened ในรูปแบบ PDF

// The path to the documents directory.
                                                              string dataDir = RunExamples.GetDataDir_NoteBook();

                                                              // Load a OneNote Notebook
                                                              var notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2");

                                                              // Save the Notebook
                                                              dataDir = dataDir + "ConvertToPDFAsFlattened_out.pdf";
                                                              notebook.Save(
                                                                  dataDir,
                                                                  new NotebookPdfSaveOptions
                                                                  {
                                                                      Flatten = true
                                                                  });

แสดงให้เห็นวิธีการบันทึกแล็ปท็อปโฟลเดอร์เป็นภาพ

// The path to the documents directory.
                                                         string dataDir = RunExamples.GetDataDir_NoteBook();

                                                         // Load a OneNote Notebook
                                                         var notebook = new Notebook(dataDir + "Notizbuch öffnen.onetoc2");

                                                         var notebookSaveOptions = new NotebookImageSaveOptions(SaveFormat.Png);

                                                         var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;

                                                         documentSaveOptions.Resolution = 400;
                                                         notebookSaveOptions.Flatten = true;

                                                         dataDir = dataDir + "ConvertToImageAsFlattenedNotebook_out.png";

                                                         // Save the Notebook
                                                         notebook.Save(dataDir, notebookSaveOptions);

SaveFormat

ได้รับรูปแบบที่บันทึกโน้ต

public abstract SaveFormat SaveFormat { get; }

คุณสมบัติมูลค่า

SaveFormat

Methods

GetDocumentSaveOptions()

รับตัวเลือกการบันทึกสําหรับเอกสารเด็กทั้งหมดของแล็ปท็อป

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

ตัวเลือก WL31_.Saving .SaveOptions

 แบบไทย