使用C++通过Golang将源范围的行高复制到目标范围
Contents
[
Hide
]
有时用户需要将行高从源范围复制到目标范围。Aspose.Cells 提供了 PasteType::RowHeights 枚举来实现这一点。当你用 PasteType::RowHeights 枚举设置 GetPasteType() 属性时,源范围内所有行的高度将被复制到目标范围。
以下示例代码演示了如何使用 PasteType::RowHeights 枚举将行高从源范围复制到目标范围。将此代码生成的 Excel 文件在 Microsoft Excel 中打开后,你会看到目标范围的行高与源范围完全一致。