分组和取消分组行和列 Apply group and ungroup of rows & columns with intuitive APIs without using Office Interop with IronXL library. Group & Ungroup Rows The GroupRows method groups rows by taking index positions. You can apply multiple groupings using this method. To ungroup rows, use the UngroupRows method. This method acts like a cutting tool. When applied to the middle of a row group, it splits the group into two. However, the new groups remain connected as a single logical group. For example, ungrouping rows 2-4 within a group spanning 0-9 will result in groups 0-1 and 5-9. Group & Ungroup Columns Columns can be grouped similarly to rows. Use the GroupColumns method to group columns by index or by specifying column names as strings. Create multiple column groups if needed. Ungroup columns with the UngroupColumns method, which also acts as a cutting tool. Applying it at the center of a column group splits it into two. For instance, ungrouping columns C-D within a group A-F results in groups A-B and E-F. Please note that all index positions mentioned above follow zero-based indexing. Grouping can only be applied as far as the cells contain values. Learn to Group & Ungroup Excel Rows and Columns with IronXL 相关文档链接 在Github上查看 相关教程 相关操作指南 类文档 下载IronXL DLL 报告此页面的问题 准备开始了吗? Nuget 下载 1,686,155 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:1,686,155 查看许可证