从工作表中删除一行
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 row of the worksheet | |
sheet.RemoveRow(0); |