Back to Devexpress

RtfCellContentExportOptions.IgnoreDisplayFormat Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-export-dot-rtfcellcontentexportoptions.md

latest2.2 KB
Original Source

RtfCellContentExportOptions.IgnoreDisplayFormat Property

Gets or sets whether to ignore the display format when exporting cell content to RTF.

Namespace : DevExpress.XtraSpreadsheet.Export

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[DefaultValue(false)]
public bool IgnoreDisplayFormat { get; set; }
vb
<DefaultValue(False)>
Public Property IgnoreDisplayFormat As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to ignore display format; otherwise, false.

|

Remarks

When the IgnoreDisplayFormat property is set to true, table style and conditional formatting are ignored.

Cell B3 in the image below contains conditional formatting:

The table below compares the resulting RTF string with IgnoreDisplayFormat set to false and true:

Property ValueResulting RTF String
false (default){\rtf1\deff0{\fonttbl{\f0 Calibri;}}{\colortbl;\red227\green108\blue9;}{\cf1\fs22\b\i\strike cell with conditional formatting}}
true{\rtf1\deff0{\fonttbl{\f0 Calibri;}}{\colortbl;}{\fs22 cell with conditional formatting}}

See Also

Export Cell Content from Spreadsheet Documents

RtfCellContentExportOptions Class

RtfCellContentExportOptions Members

DevExpress.XtraSpreadsheet.Export Namespace