Skip to main content
All docs
V25.1
  • 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.1.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