Class NotebookSaveOptions
Le nom : Aspose.Note.Saving Assemblée: Aspose.Note.dll (25.4.0)
Une classe de base abstraite qui représente les options de sauvegarde du notebook pour un format particulieret fournit des options de sauvegarde communes pour tous les nœuds d’enfant de document.
public abstract class NotebookSaveOptions<tdocumentsaveoptions> : NotebookSaveOptions where TDocumentSaveOptions : SaveOptions
Tipo di parametri
TDocumentSaveOptions
Les options de sauvegarde pour tous les documents de l’enfant du notebook.
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
I membri ereditari
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
Affiche comment sauvegarder un ordinateur dans le format PDF avec des options spécifiées.
// 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
Obtenez ou définissez les options de sauvegarde pour tous les documents de l’enfant du notebook.
public TDocumentSaveOptions DocumentSaveOptions { get; protected set; }
Valore di proprietà
TDocumentSaveOptions
Examples
Affiche comment sauvegarder un ordinateur dans le format PDF avec des options spécifiées.
// 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
Obtenez le format dans lequel le notebook est enregistré.
public override SaveFormat SaveFormat { get; }
Valore di proprietà
Methods
GetDocumentSaveOptions()
Obtenez les options de sauvegarde pour tous les documents de l’enfant du notebook.
public override SaveOptions GetDocumentSaveOptions()
Returns
Le Aspose.Note.Saving .SaveOptions.