从工作表中移除列
Contents
[
Hide
]
这是一个基础主题,专门描述了从工作表中移除列的最简单方法。看起来很简单,但这是开发人员在与Aspose.Cells.GridDesktop一起工作时可以在日常任务中使用的便利功能。
从工作表中移除列
要从工作表中移除列,请按照以下步骤操作:
- 访问任何所需的工作表 通过指定要删除的列的索引,从工作表中删除列
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing first worksheet of the Grid | |
Worksheet sheet = gridDesktop1.Worksheets[0]; | |
// Removing the first column of the worksheet | |
sheet.RemoveColumn(0); |