Back to Devexpress

FormattedTextExportOptions.KeepRowHeight Property

corelibraries-devexpress-dot-xtraprinting-dot-formattedtextexportoptions.md

latest2.7 KB
Original Source

FormattedTextExportOptions.KeepRowHeight Property

Specifies whether the height of table cells in a resulting document should have fixed values, or adding a new line of text to a cell’s content should increase the row height.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(false)]
public virtual bool KeepRowHeight { get; set; }
vb
<DefaultValue(False)>
Public Overridable Property KeepRowHeight As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to make the row height unaffected by adding new content to a cell; otherwise, false.

|

Remarks

This property is in effect when the RtfExportOptions.ExportMode/DocxExportOptions.ExportMode property is set to RtfExportMode.SingleFile/DocxExportMode.SingleFile.

When this export mode is selected, a document is represented by a table with its cells carrying the actual content. Leaving the KeepRowHeight property set to false (its default value) will make the height of table cells have non-fixed values, so that adding a new line of text to a cell’s content will increase the row height.

KeepRowHeight = falseKeepRowHeight = true

This property is required to meet the standard of parsing documents by Microsoft® Word®, where cells with similar height setting but different types may result in a different actual height value. To avoid this and make the row height unaffected by adding new content to a cell, set the KeepRowHeight property to true.

See Also

FormattedTextExportOptions Class

FormattedTextExportOptions Members

DevExpress.XtraPrinting Namespace