نقل مجموعة من الخلايا في ورقة العمل
Contents
[
Hide
]
يوضح هذا المقال كيفية نقل مجموعة من الخلايا في ورقة العمل.
نقل مجموعة من الخلايا في ورقة العمل
يستخدم الشفرة المثالية ملف قالب لتوضيح المهمة.
ملف الإدخال
يرجى الاطلاع على الملف الناتج التالي بالنطاق A1:B5 المحرك إلى C1:D5.
ملف الإخراج
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
// 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); |