Удаление строки из Листа
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); |