Copy Row Heights of Source Range to Destination Range
Contents
[
Hide
]
Sometime user needs to copy row heights of source range to destination range. Aspose.Cells provides PasteType.RowHeights enum for this purpose. When you will set PasteOptions.PasteType property with PasteType.RowHeights enum then heights of all rows inside the source range will be copied to destination range.
The following sample code explains how to use PasteType.RowHeights enum to copy row heights of source range into destination range. Once you will open the output excel file generated by this code in Microsoft Excel, you will see that destination range row heights are exactly the same as source range row heights.