Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue(false)]
public bool IgnoreDisplayFormat { get; set; }

#Property Value

Type Default Description
Boolean false

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:

Spreadsheet - Rich Text

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

Property Value Resulting 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