从工作表中删除列
Contents
[
Hide
]
这是开发人员的基本主题,它仅描述了从工作表中删除列的最简单方法。它看起来很简单,但却是一个方便的功能,开发人员可以在使用 Aspose.Cells.GridDesktop 时在日常任务中使用它。
从工作表中删除列
要从工作表中删除列,请按照以下步骤操作:
- 访问任何想要的工作表
- 去掉柱子来自工作表通过指定要删除的列的索引
This file contains hidden or 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); |