C# Customize Content Import and Export in RichTextBox
KetticRichTextBox .NET component supports not only import and export the content of KetticRichTextBox, but customization of the import or export itself. This feature allows the users to customize the presentation of the same content of KetticRichTextBox in various document formats. To set the export and import, we can use the customization options included in the document format providers in the C# classes of KetticRichTextBox.
Customizing Import/Export of KetticRichTextBox
There are two document format providers available, the HtmlFormatProvider and the PdfFormatProvider. To customize the import and export, we should create an instance of the settings and assign the instance to the property of the format provider that will be applied. And then we are able to customize or retrieve the properties that we need.
Settings of HtmlFormatProvider
To set the HTML documents import and export, we should use the settings in the HtmlFormatProvider. There are the HtmlExportSettings and the HtmlImportSettings available for the users to customize the HTML import and export using KetticRichTextBox.
HtmlExportSettings contains a few options for the users to customize the HTML format export by using the KetticRichTextBox, such as,
HtmlImportSettings contains two options for the users to customize the HTML format import by using the KetticRichTextBox, including,
Settings of PdfFormatProvider
To set the export to PDF documents, we shall apply the settings in the PdfFormatProvider. The PdfExportSettings included in the provider can be used to customize the PDF export. The following are the options of PdfExportSettings.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls