أوراق العمل الوصول
Contents
[
Hide
]
يناقش هذا الموضوع الوصول إلى أوراق العمل في عنصر تحكم Aspose.Cells.GridWeb. سنشير إليها باسم “أوراق عمل الويب” لأنها تنتمي إلى Aspose.Cells.GridWeb وتستخدم في تطبيقات الويب.
الوصول إلى ورقة العمل
يتم تخزين جميع أوراق العمل الموجودة في Aspose.Cells.GridWeb في GridWorksheetCollection لعنصر تحكم GridWeb. توجد طريقتان للوصول إلى ورقة العمل: من خلال فهرس الورقة الخاص بها أو باسم الورقة الخاصة بها.
باستخدام فهرس الورقة
يوضح مقتطف الشفرة أدناه كيفية الوصول إلى ورقة عمل ويب معينة من GridWorksheetCollection لعنصر تحكم GridWeb باستخدام فهرس الورقة.
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 | |
// Accessing a worksheet using its index | |
GridWorksheet sheet = GridWeb1.WorkSheets[0]; | |
Label1.Text = "Sheet at index 0 is : " + sheet.Name + "<br/>"; |
استخدام اسم الورقة
يوضح مقتطف الشفرة أدناه كيفية الوصول إلى ورقة عمل ويب من مجموعة GridWorksheetCollection لعنصر تحكم GridWeb باستخدام اسم الورقة.
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 | |
// Accessing a worksheet using its name | |
GridWorksheet sheet1 = GridWeb1.WorkSheets["Catalog"]; | |
Label1.Text += "Index of sheet Catalog is : " + sheet1.Index + "<br/>"; |