Çalışma Sayfasındaki yinelenen satırları kaldırın
Contents
[
Hide
]
Yinelenen satırları kaldırma, Microsoft Excel’in birçok yararlı özelliğinden biridir. Kullanıcıların bir Çalışma Sayfasındaki yinelenen satırları kaldırmasına olanak tanır, yinelenen bilgiler için hangi sütunların kontrol edileceğini seçebilirsiniz.
Aspose.Cells, bu amaç için Cells.RemoveDuplicates() yöntemini sağlar. Sütunları almak için startRow, startColumn, endRow, endColumn’u da ayarlayabilirsiniz.
Bu özelliği test etmek için indirilebilecek örnek dosyalar aşağıdadır:
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 | |
//Create workbook | |
Workbook book = new Workbook("removeduplicates.xlsx"); | |
//Remove Duplicate | |
book.Worksheets[0].Cells.RemoveDuplicates(0 ,0, 5, 3); | |
//Save result | |
book.Save("removeduplicates-result.xlsx"); |