Skip to main content

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

HtmlDocumentExporterOptions.UseSpanTagForIndentation Property

Gets or sets a value indicating whether the indent value should be exported to HTML using the <span> tag.

Namespace: DevExpress.XtraSpreadsheet.Export

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue(true)]
public bool UseSpanTagForIndentation { get; set; }

#Property Value

Type Default Description
Boolean true

true, to use the <span> tag to export the indent value of the cell content; otherwise, false.

#Remarks

By default, the UseSpanTagForIndentation property is set to true and the SpreadsheetControl exports an indent value of the cell content using the <span> tag.

To provide compatibility of the resulting HTML file with the Rich Text Editor, set the UseSpanTagForIndentation property to false. In this case, an indent value will be exported to HTML using the style attribute of the <td> tag.

See Also