Class NotebookSaveOptions

Class NotebookSaveOptions

Tên không gian: Aspose.Note.Saving Tổng hợp: Aspose.Note.dll (25.4.0)

Một lớp cơ sở trừu tượng đại diện cho các tùy chọn lưu trữ máy tính xách tay cho một định dạng cụ thể.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

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 để lưu sổ ghi chép mờ trong định dạng 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
                                                                  });

Hiển thị cách lưu sổ tay trong định dạng PDF với các tùy chọn được chỉ định.

// 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);

Hiển thị làm thế nào để tiết kiệm máy tính xách tay mờ như một hình ảnh.

// 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

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 được giải cứu một cách rõ ràng.

public bool DeferredSaving { get; set; }

Giá trị bất động sản

bool

Remarks

Giá trị mặc định là ‘không thực’, vì vậy các tài liệu trẻ em sẽ được lưu trữ một cách giả định.Value ’true’ là chỉ ra rằng người dùng nên lưu các nút trẻ của mỗi máy tính xách tay bằng cách rõ ràng.Nếu nó được tiết kiệm để phát, giá trị luôn ’thực tế’ mặc dù nó đã được đặt ra trực tiếp bởi người sử dụng để ’nhận’.

Flatten

Nhận hoặc đặt một giá trị cho thấy liệu bảng điều khiển trẻ em được tiết kiệm hay không.

public bool Flatten { get; set; }

Giá trị bất động sản

bool

Examples

Hiển thị làm thế nào để lưu sổ ghi chép mờ trong định dạng 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
                                                                  });

Hiển thị làm thế nào để tiết kiệm máy tính xách tay mờ như một hình ảnh.

// 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

Nhận định dạng mà sổ ghi chép được lưu.

public abstract SaveFormat SaveFormat { get; }

Giá trị bất động sản

SaveFormat

Methods

GetDocumentSaveOptions()

Nhận các tùy chọn tiết kiệm cho tất cả tài liệu trẻ em của máy tính xách tay.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

Các Aspose.Note.Saving .SaveOptions.

 Tiếng Việt