Class NotebookSaveOptions

Class NotebookSaveOptions

Nom dels espais: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)

Una classe de base abstracta que representa les opcions d’estalvi de notebook per a un format específici proporciona opcions comuns d’estalvi per a tots els nodes infantils de document.

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

Tipus de paràmetres

TDocumentSaveOptions

Les opcions d’emmagatzematge per a tots els documents infantils del notebook.

Inheritance

object NotebookSaveOptions NotebookSaveOptions

Membres heretats

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

Mostra com salvar el notebook en format pdf amb les opcions especificades.

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

Obté o estableix les opcions d’estalvi per a tots els documents infantils del notebook.

public TDocumentSaveOptions DocumentSaveOptions { get; protected set; }

Valor de la propietat

TDocumentSaveOpcions

Examples

Mostra com salvar el notebook en format pdf amb les opcions especificades.

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

Obté el format en el qual s’emmagatzema el notebook.

public override SaveFormat SaveFormat { get; }

Valor de la propietat

SaveFormat

Methods

GetDocumentSaveOptions()

Obté les opcions d’estalvi per a tots els documents infantils del notebook.

public override SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

El Aspose.Note .Saving.SaveOptions.

 Català