Bir Çalışma Sayfasında Cells Aralığını Taşı
Contents
[
Hide
]
Bu makale, çalışma sayfasındaki bir hücre aralığının nasıl taşınacağını gösterir.
Bir Çalışma Sayfasında Cells Aralığını Taşı
Örnek kod, görevi göstermek için bir şablon dosyası kullanır.
giriş dosyası
Lütfen A1:B5 aralığı C1:D5’e taşınan aşağıdaki oluşturulan dosyaya bakın.
çıktı dosyası
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
// Instantiate the workbook object. Open the Excel file | |
Workbook workbook = new Workbook("book1.xlsx"); | |
Cells cells = workbook.Worksheets[0].Cells; | |
Range range = cells.CreateRange("A1", "B5"); | |
//move the range to right. | |
range.MoveTo(0, 2); |