إضافة أو إدراج صف في ورقة العمل
Contents
[
Hide
]
على غرار أحد موضوعاتنا السابقة ، يصف هذا الموضوع ميزة إضافة وإدراج الصفوف في أوراق العمل في وقت التشغيل باستخدام API من Aspose.Cells.GridDesktop. يتمثل الاختلاف الأساسي بين الإضافة والإدراج في أنه بالإضافة إلى ذلك ، يتم إضافة صف في نهاية مجموعة صفوف ورقة العمل حيث يمكن إضافة صف إلى أي موضع محدد في ورقة العمل كما في الإدراج.
إضافة صف إلى ورقة العمل
لإضافة صف جديد إلى ورقة العمل ، يرجى اتباع الخطوات التالية:
- أضف Aspose.Cells.GridDesktop control إلى ملفاستمارة
- الوصول إلى أي ملفاتورقة عمل
- يضيفصف الىورقة عمل
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
// 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]; | |
// Adding row to the worksheet | |
sheet.AddRow(); |
إدراج صف في ورقة العمل
لإدراج صف جديد في ورقة العمل في موضع محدد ، يرجى اتباع الخطوات التالية:
- أضف Aspose.Cells.GridDesktop control إلى ملفاستمارة
- الوصول إلى أي ملفاتورقة عمل
- إدراجصف داخلورقة عمل(في موضع معين عن طريق تحديد فهرس الصف الذي يتم إدخاله فيه)
// Accessing first worksheet of the Grid
Aspose.Cells.GridDesktop.Worksheet sheet = gridDesktop1.Worksheets[0];
// Inserting row to the worksheet to the first position.
sheet.Cells.InsertRow(0);