Back to Devexpress

SpreadsheetCellOptions.AutoFitMergedCellRowHeight Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcelloptions.md

latest2.0 KB
Original Source

SpreadsheetCellOptions.AutoFitMergedCellRowHeight Property

Gets or sets a value indicating whether the row height can be automatically adjusted for cells merged across a row and containing wrapped text. This is a dependency property.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool AutoFitMergedCellRowHeight { get; set; }
vb
Public Property AutoFitMergedCellRowHeight As Boolean

Property Value

TypeDescription
Boolean

true, to automatically adjust the height of a row that has cells merged across; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoFitMergedCellRowHeight
SpreadsheetControlOptions

.Cells .AutoFitMergedCellRowHeight

|

Remarks

By default, when you merge a cell containing wrapped text with the other cells in a row, the resulting merged cell’s row height cannot be adjusted automatically to accommodate cell content. To avoid this behavior and enable the AutoFit functionality for rows that have cells merged across, set the AutoFitMergedCellRowHeight property to true.

See Also

SpreadsheetCellOptions Class

SpreadsheetCellOptions Members

DevExpress.Xpf.Spreadsheet Namespace