Class HtmlImportExportSettings
Represents the HtmlImportExportSettings class.
Inheritance
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class HtmlImportExportSettings : DependencyObjectConstructors
HtmlImportExportSettings()
Declaration
public HtmlImportExportSettings()Fields
ExportCssTypeProperty
Identifies the ExportCssType dependency property.
Declaration
public static readonly DependencyProperty ExportCssTypePropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the ExportCssType dependency property. | 
FontFamilyProperty
Identifies the FontFamily dependency property.
Declaration
public static readonly DependencyProperty FontFamilyPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the FontFamily dependency property. | 
IsOverwriteFontFamilyProperty
Identifies the IsOverwriteFontFamily dependency property.
Declaration
public static readonly DependencyProperty IsOverwriteFontFamilyPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the IsOverwriteFontFamily dependency property. | 
Properties
ExportCssType
Gets or sets a value indicating the CSS style sheet type in the exported HTML.
Declaration
public CssType ExportCssType { get; set; }Property Value
| Type | Description | 
|---|---|
| CssType | The CssType that specifies the CSS style sheet type in the exported HTML. The default value is Syncfusion.Windows.Controls.RichTextBoxAdv.CssType.Internal. | 
Remarks
This property is effected only for Html exporting.
Examples
The following code example demonstrates how to define Html import and export settings for a SfRichTextBoxAdv control.
<RichTextBoxAdv:SfRichTextBoxAdv x:Name="richTextBoxAdv" LayoutType="Pages">
    <RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
        <!-- Writes style attributes as inline CSS. -->
        <RichTextBoxAdv:HtmlImportExportSettings ExportCssType="Inline" />
    </RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
</RichTextBoxAdv:SfRichTextBoxAdv>// Defines the control.
SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv();
//Defines the html import and export settings.
HtmlImportExportSettings htmlImportExportSettings = new HtmlImportExportSettings();
htmlImportExportSettings.ExportCssType = CssType.Inline;
// Writes style attributes as inline CSS in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettings;
' Defines the control.
Dim richTextBoxAdv As New SfRichTextBoxAdv()
' Defines the html import and export settings.
Dim htmlImportExportSettings As New HtmlImportExportSettings()
htmlImportExportSettings.ExportCssType = CssType.Inline
' Writes style attributes as inline CSS in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettingsFontFamily
Gets or sets the font-family name to be overwritten/replaced for all elements in the exported HTML.
Declaration
public string FontFamily { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The string that specifies the font-family name to be overwritten/replaced for all elements in the exported HTML. | 
Remarks
This property is effected only when IsOverwriteFontFamily property is set to true.
Examples
The following code example demonstrates how to define Html import and export settings for a SfRichTextBoxAdv control.
<RichTextBoxAdv:SfRichTextBoxAdv x:Name="richTextBoxAdv" LayoutType="Pages">
    <RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
        <!-- Writes arial font family style for all elements in exported Html. -->
        <RichTextBoxAdv:HtmlImportExportSettings IsOverwriteFontFamily="True" FontFamily="Arial" />
    </RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
</RichTextBoxAdv:SfRichTextBoxAdv>// Defines the control.
SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv();
//Defines the html import and export settings.
HtmlImportExportSettings htmlImportExportSettings = new HtmlImportExportSettings();
htmlImportExportSettings.IsOverwriteFontFamily = true;
htmlImportExportSettings.FontFamily = "Arial";
// Writes arial font family style for all elements in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettings;
' Defines the control.
Dim richTextBoxAdv As New SfRichTextBoxAdv()
' Defines the html import and export settings.
Dim htmlImportExportSettings As New HtmlImportExportSettings()
htmlImportExportSettings.IsOverwriteFontFamily = True
htmlImportExportSettings.FontFamily = "Arial"
' Writes arial font family style for all elements in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettingsIsOverwriteFontFamily
Gets or sets a value indicating whether the font-family name to be overwritten/replaced for all elements in the exported HTML.
Declaration
public bool IsOverwriteFontFamily { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | True if the font-family name to be overwritten/replaced for all elements in the exported HTML; otherwise false. The default is false. | 
Examples
The following code example demonstrates how to define Html import and export settings for a SfRichTextBoxAdv control.
<RichTextBoxAdv:SfRichTextBoxAdv x:Name="richTextBoxAdv" LayoutType="Pages">
    <RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
        <!-- Ignores font family style in exported Html. -->
        <RichTextBoxAdv:HtmlImportExportSettings IsOverwriteFontFamily="True" />
    </RichTextBoxAdv:SfRichTextBoxAdv.HtmlImportExportSettings>
</RichTextBoxAdv:SfRichTextBoxAdv>// Defines the control.
SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv();
// Defines the html import and export settings.
HtmlImportExportSettings htmlImportExportSettings = new HtmlImportExportSettings();
htmlImportExportSettings.IsOverwriteFontFamily = true;
// Ignores font family style in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettings;
' Defines the control.
Dim richTextBoxAdv As New SfRichTextBoxAdv()
' Defines the html import and export settings.
Dim htmlImportExportSettings As New HtmlImportExportSettings()
htmlImportExportSettings.IsOverwriteFontFamily = True
' Ignores font family style in exported Html.
richTextBoxAdv.HtmlImportExportSettings = htmlImportExportSettingsEvents
ImageNodeVisited
Declaration
public event HtmlImportExportSettings.ImageNodeVisitedEventHandler ImageNodeVisitedEvent Type
| Type | 
|---|
| HtmlImportExportSettings.ImageNodeVisitedEventHandler |