Class NotebookSaveOptions
Numele spaţiului: Aspose.Note.Saving Asamblare: Aspose.Note.dll (25.4.0)
O clasă de bază abstractă care reprezintă opțiunile de economisire a notebook-ului pentru un anumit formatși oferă opțiuni comune de economisire pentru toate nodurile copilului document.
public abstract class NotebookSaveOptions<tdocumentsaveoptions> : NotebookSaveOptions where TDocumentSaveOptions : SaveOptions
Tipuri de parametri
TDocumentSaveOptions
Opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
Membrii moștenitori
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
arată cum să salvați notebook-ul în format PDF cu opțiuni specificate.
// 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
Obține sau setă opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.
public TDocumentSaveOptions DocumentSaveOptions { get; protected set; }
Valoarea proprietății
TDocumentOpțiuni
Examples
arată cum să salvați notebook-ul în format PDF cu opțiuni specificate.
// 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
Obține format în care este salvat notebook-ul.
public override SaveFormat SaveFormat { get; }
Valoarea proprietății
Methods
GetDocumentSaveOptions()
Obține opțiunile de salvare pentru toate documentele pentru copii ale notebook-ului.
public override SaveOptions GetDocumentSaveOptions()
Returns
WL31_.Saving .SaveOptions.