Back to Devexpress

HtmlCellContentExportOptions.IgnoreDisplayFormat Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-export-dot-htmlcellcontentexportoptions-8f00e8ba.md

latest2.3 KB
Original Source

HtmlCellContentExportOptions.IgnoreDisplayFormat Property

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

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, the table style and conditional formatting is ignored.

Cell B3 in the image below contains conditional formatting:

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

Property ValueResulting HTML String
false (default)<font style="font-family:Calibri;font-size:11pt;font-weight:bold;font-style:italic;text-decoration: line-through;color:#E36C09;">cell with conditional formatting</font>
true<font style="font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;color:#FFFFFF;">cell with conditional formatting</font>

See Also

Export Cell Content from Spreadsheet Documents

HtmlCellContentExportOptions Class

HtmlCellContentExportOptions Members

DevExpress.XtraSpreadsheet.Export Namespace