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

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

Cell B3 in the image below contains conditional formatting:

Spreadsheet - Rich Text

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

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