Class ExportSettings
Represents the customization settings for exporting document.
Inheritance
System.Object
ExportSettings
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class ExportSettings : DependencyObject
Constructors
ExportSettings()
Declaration
public ExportSettings()
Fields
OptimizeRtfFileSizeProperty
Identifies the OptimizeRtfFileSize dependency property.
Declaration
public static readonly DependencyProperty OptimizeRtfFileSizeProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the OptimizeRtfFileSize dependency property. |
Properties
OptimizeRtfFileSize
Gets or sets a value indicating whether to reduce the resultant RTF file size by removing the tags with default values. The default value is false.
Declaration
public bool OptimizeRtfFileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true to reduce the resultant RTF file size, like WordPad application, RichTextBox control; otherwise, false |
Examples
The following code example demonstrates how to set the OptimizeRtfFileSize property.
<!-- Sets the OptimizeRtfFileSize. -->
<RichTextBoxAdv:SfRichTextBoxAdv.ExportSettings>
<RichTextBoxAdv:ExportSettings OptimizeRtfFileSize="True"/>
</RichTextBoxAdv:SfRichTextBoxAdv.ExportSettings>
// Sets the OptimizeRtfFileSize.
SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv();
richTextBoxAdv.ExportSettings.OptimizeRtfFileSize = true;
' Sets the OptimizeRtfFileSize.
Dim richTextBoxAdv As New SfRichTextBoxAdv()
richTextBoxAdv.ExportSettings.OptimizeRtfFileSize = True
Methods
add_UIContainerExporting(ExportSettings.UIContainerExportingEventHandler)
Declaration
public void add_UIContainerExporting(ExportSettings.UIContainerExportingEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ExportSettings.UIContainerExportingEventHandler | value |
remove_UIContainerExporting(ExportSettings.UIContainerExportingEventHandler)
Declaration
public void remove_UIContainerExporting(ExportSettings.UIContainerExportingEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ExportSettings.UIContainerExportingEventHandler | value |
Events
UIContainerExporting
Declaration
public event ExportSettings.UIContainerExportingEventHandler UIContainerExporting
Event Type
Type |
---|
ExportSettings.UIContainerExportingEventHandler |