Class NotebookSaveOptions

Class NotebookSaveOptions

Nazwa przestrzeń: Aspose.Note.Saving Zgromadzenie: Aspose.Note.dll (25.4.0)

Abstrakcyjna klasa podstawy, która reprezentuje opcje oszczędności notatek dla danego formatui zapewnia wspólne opcje oszczędnościowe dla wszystkich węzłów dokumentowych dzieci.

public abstract class NotebookSaveOptions<tdocumentsaveoptions> : NotebookSaveOptions where TDocumentSaveOptions : SaveOptions

Rodzaj parametrów

TDocumentSaveOptions

Opcje przechowywania dla wszystkich dokumentów dziecięcych notatek.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Dziedziczeni członkowie

NotebookSaveOptions.GetDocumentSaveOptions() , NotebookSaveOptions.SaveFormat , NotebookSaveOptions.Flatten , NotebookSaveOptions.DeferredSaving , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Pokaż, jak zapisać notebook w formacie PDF z określonymi opcjami.

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

Constructors

NotebookSaveOptions()

protected NotebookSaveOptions()

Properties

DocumentSaveOptions

Otrzymuje lub ustawia opcje oszczędzania dla wszystkich dokumentów dziecięcych notatki.

public TDocumentSaveOptions DocumentSaveOptions { get; protected set; }

Wartość nieruchomości

TDocumentSaveOptions

Examples

Pokaż, jak zapisać notebook w formacie PDF z określonymi opcjami.

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

SaveFormat

Otrzymuje format, w którym jest zapisany notebook.

public override SaveFormat SaveFormat { get; }

Wartość nieruchomości

SaveFormat

Methods

GetDocumentSaveOptions()

Otrzymuje opcje oszczędnościowe dla wszystkich dokumentów dziecięcych laptopa.

public override SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

Opcja Aspose.Note.Saving.saveOptions.

 Polski