Class NotebookSaveOptions
اسم الفضاء : Aspose.Note.Saving تجميع: Aspose.Note.dll (25.4.0)
فئة أساسية خفية تمثل خيارات توفير الكمبيوتر المحمول لشكل معينوتوفر خيارات التخزين الشائعة لجميع عقدة الأطفال الوثائقية.
public abstract class NotebookSaveOptions<TDocumentSaveOptions>
where TDocumentSaveOptions : SaveOptions
{
}
نوع المعلمات
TDocumentSaveOptions
خيارات التخزين لجميع وثائق الأطفال في الكمبيوتر المحمول.
Inheritance
object
←
NotebookSaveOptions
←
NotebookSaveOptions
الأعضاء الموروثين
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
يظهر كيفية حفظ الكمبيوتر المحمول في تنسيق PDF مع الخيارات المحددة.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
var notebookSaveOptions = new NotebookPdfSaveOptions();
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
dataDir += "ConvertToPDF_out.pdf";
notebook.Save(dataDir, notebookSaveOptions);
Constructors
الكمبيوتر المحمولSaveOptions()
protected void NotebookSaveOptions()
{
}
Properties
DocumentSaveOptions
يحصل أو يضع خيارات التخزين لجميع وثائق الأطفال في الكمبيوتر المحمول.
public TDocumentSaveOptions DocumentSaveOptions
{
get
{
return this.DocumentSaveOptions;
}
protected set
{
this.DocumentSaveOptions = value;
}
}
قيمة الممتلكات
TDocumentالخيارات
Examples
يظهر كيفية حفظ الكمبيوتر المحمول في تنسيق PDF مع الخيارات المحددة.
string dataDir = RunExamples.GetDataDir_NoteBook();
var notebook = new Notebook(dataDir + "Notizbuch Öffnen.onetoc2");
var notebookSaveOptions = new NotebookPdfSaveOptions();
var documentSaveOptions = notebookSaveOptions.DocumentSaveOptions;
documentSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
dataDir += "ConvertToPDF_out.pdf";
notebook.Save(dataDir, notebookSaveOptions);
SaveFormat
يحصل على النموذج الذي يتم فيه حفظ الكمبيوتر المحمول.
public override SaveFormat GetSaveFormat()
{
return this.SaveFormat;
}
قيمة الممتلكات
Methods
GetDocumentSaveOptions( )
يحصل على خيارات التخزين لجميع وثائق الأطفال في الكمبيوتر المحمول.
public override SaveOptions GetDocumentSaveOptions()
{
return new SaveOptions
{
Encoding = System.Text.Encoding.UTF8,
CreateHeadingsWithStyle = true,
OmitFontSubstitutionWarning = true,
SaveFormat = SaveFormat.Docx,
SaveFormatVersion = PdfSaveFormatVersion.AutoDetect,
SaveToFolder = @"C:\Temp\MyDocument",
CreateFolderIfMissing = false,
AllowPartialContentLoad = true,
SaveEncryptionSettings = new EncryptionSettings(true, "", "", AesSyncedKeyDecryptionMode.Automatic),
ErrorHandling = ErrorHandling.StopOnFirstError
};
}
Returns
الـ Saving .SaveOptions.