إزالة ورقة العمل
Contents
[
Hide
]
يناقش هذا الموضوع إزالة ورقة العمل باستخدام تحكم Aspose.Cells.GridDesktop. هناك بعض الطرق البسيطة لإنجاز هذه المهمة الأساسية.
إزالة ورقة العمل
لإزالة ورقة العمل باستخدام تحكم Aspose.Cells.GridDesktop، يرجى اتباع الخطوات التالية:
- أضف تحكم Aspose.Cells.GridDesktop إلى نموذج.
- اتصل بأسلوب إزالة مجموعة الأوراق في تحكم GridDesktop.
استخدام فهرس ورقة العمل
في هذا النهج، ببساطة قم بتمرير فهرس ورقة العمل (في مجموعة الأوراق للجدول) لورقة العمل التي يجب إزالتها.
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 | |
// Removing a worksheet using its index | |
gridDesktop1.Worksheets.Remove(0); |
استخدام اسم ورقة العمل
إذا كان معروفًا اسم ورقة العمل، فيمكن إزالة ورقة العمل المحددة عن طريق تحديد اسمها.
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 | |
// Removing a worksheet using its index | |
gridDesktop1.Worksheets.RemoveAt("Sheet3"); |
إزالة هو طريقة. استخدمها لإزالة ورقة العمل باستخدام فهرسها (في مجموعة الأوراق) أو استخدم طريقة RemoveAt لإزالة ورقة العمل باستخدام فهرسها/اسمها.