Class NotebookSaveOptions
اسم الفضاء : Aspose.Note.Saving تجميع: Aspose.Note.dll (25.4.0)
فئة أساسية خفية تمثل خيارات توفير الكمبيوتر المحمول لشكل معين.
public abstract class NotebookSaveOptions
Inheritance
Derived
الأعضاء الموروثين
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
يظهر كيفية حفظ الكمبيوتر المحمول في تنسيق PDF.
// 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
});
يظهر كيفية حفظ الكمبيوتر المحمول في تنسيق PDF مع الخيارات المحددة.
// 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);
يظهر كيفية حفظ الكمبيوتر المحمول المسطح كصورة.
// 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
يحصل أو يضع قيمة تشير إلى ما إذا كان الأطفال مستنداتيجب أن يتم إنقاذها صراحة.
public bool DeferredSaving { get; set; }
قيمة الممتلكات
Remarks
القيمة الافتراضية هي “مزيفة” ، لذلك سيتم تخزين وثائق الطفل بشكل غير مسبوق.قيمة “صحيحة” تشير إلى أن المستخدم يجب أن ينقذ عقدة الطفل لكل جهاز كمبيوتر محمول بشكل صريح.إذا تم توفير دفتر ملاحظة لتدفق ، فإن القيم هي دائمًا “حقيقية” على الرغم من أنها تم تعيينها صريحة من قبل المستلم إلى “كاذبة”.
Flatten
يحصل أو يضع قيمة تشير إلى ما إذا كانت الهرم الأطفال الكمبيوتر المحمول يتم حفظها.
public bool Flatten { get; set; }
قيمة الممتلكات
Examples
يظهر كيفية حفظ الكمبيوتر المحمول في تنسيق PDF.
// 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
});
يظهر كيفية حفظ الكمبيوتر المحمول المسطح كصورة.
// 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
يحصل على النموذج الذي يتم فيه حفظ الكمبيوتر المحمول.
public abstract SaveFormat SaveFormat { get; }
قيمة الممتلكات
Methods
GetDocumentSaveOptions()
يحصل على خيارات التخزين لجميع وثائق الأطفال في الكمبيوتر المحمول.
public abstract SaveOptions GetDocumentSaveOptions()
Returns
الـ WL31_.Saving .SaveOptions.