نقل مدى Cells في ورقة عمل

نقل مدى Cells في ورقة عمل

يستخدم رمز المثال ملف قالب لتوضيح المهمة.

ملف الإدخال

ما يجب القيام به: image_بديل_نص

الرجاء مراجعة الملف التالي الذي تم إنشاؤه بنطاق A1: B5 تم نقله إلى C1: D5.

ملف الإخراج

ما يجب القيام به: image_بديل_نص

// 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);
view raw Move-Range.cs hosted with ❤ by GitHub