Class NotebookSaveOptions

Class NotebookSaveOptions

A név: Aspose.Note.Saving Összefoglaló: Aspose.Note.dll (25.4.0)

Absztrakt bázisosztály, amely egy adott formátumhoz a notebook mentési opciókat képviseli.

public abstract class NotebookSaveOptions

Inheritance

object NotebookSaveOptions

Derived

NotebookSaveOptions

Örökletes tagok

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

Examples

Megmutatja, hogyan lehet menteni a fúró notebook pdf formátumban.

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

Megmutatja, hogyan lehet menteni a notebook pdf formátumban a meghatározott opciókkal.

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

Megmutatja, hogyan lehet menteni a billentyűzetet mint képet.

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

Megkapja vagy beállítja azt a értéket, amely azt jelzi, hogy a gyermekek dokumentumokatEzt kifejezetten meg kell menteni.

public bool DeferredSaving { get; set; }

ingatlan értéke

bool

Remarks

Az alapértelmezett érték “hamis”, így a gyermek dokumentumok fognak menteni implicit módon.Az értéke “igaz” azt jelzi, hogy a felhasználónak meg kell mentnie minden notebook gyermek csomópontja kifejezetten.Ha a notebook mentett áramlásra, az érték mindig “valódi”, bár kifejezett módon beállított felhasználó “hamis”.

Flatten

Megkapja vagy beállítja az értéket, amely jelzi, hogy a notebook gyermek hierarchiája mentett-e.

public bool Flatten { get; set; }

ingatlan értéke

bool

Examples

Megmutatja, hogyan lehet menteni a fúró notebook pdf formátumban.

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

Megmutatja, hogyan lehet menteni a billentyűzetet mint képet.

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

Megkapja azt a formátumot, amelyben a notebook mentett.

public abstract SaveFormat SaveFormat { get; }

ingatlan értéke

SaveFormat

Methods

GetDocumentSaveOptions()

Megkapja a tárolási lehetőségeket a notebook összes gyermekdokumentumára.

public abstract SaveOptions GetDocumentSaveOptions()

Returns

SaveOptions

A Aspose.Note.Saving.saveOptions beállítása.

 Magyar