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 for Python via .NET provides PasteType.ROW_HEIGHTS enum for this purpose. When you will set PasteOptions.paste_type property with PasteType.ROW_HEIGHTS 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.ROW_HEIGHTS 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.