تخصيص رأس الصف ورأس العمود
Contents
[
Hide
]
مثل Microsoft Excel، يستخدم Aspose.Cells.GridWeb أيضًا رؤوس أو تسميات قياسية للصفوف (أرقام مثل 1، 2، 3 وما إلى ذلك) والأعمدة (أبجدية مثل A، B، C وما إلى ذلك). تُمكن Aspose.Cells.GridWeb أيضًا من تخصيص التسميات. يناقش هذا الموضوع تخصيص رؤوس الصف والعمود في وقت التشغيل باستخدام واجهة برمجة التطبيقات Aspose.Cells.GridWeb.
تخصيص رأس الصف
لتخصيص رأس أو تسمية صف:
- أضف تحكم Aspose.Cells.GridWeb إلى استمارة الويب.
- قم بالوصول إلى ورقة العمل في مجموعة GridWorksheetCollection.
- قم بتعيين التسمية لأي صف محدد.
** تم تخصيص رؤوس الصف 1 و 2 **
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 the worksheet that is currently active | |
GridWorksheet workSheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex]; | |
// Create custom row header caption. | |
workSheet.SetRowCaption(1, "Row1"); | |
workSheet.SetRowCaption(2, "Row2"); |
تخصيص رأس العمود
لتخصيص الرأس أو التسمية لعمود:
- أضف تحكم Aspose.Cells.GridWeb إلى استمارة الويب.
- قم بالوصول إلى ورقة العمل في مجموعة GridWorksheetCollection.
- قم بتعيين التسمية لأي عمود محدد.
** تم تخصيص رؤوس العمود 1 و 2 و 3 **
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 the worksheet that is currently active | |
GridWorksheet workSheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex]; | |
// Creates custom column header caption. | |
workSheet.SetColumnCaption(0, "Product"); | |
workSheet.SetColumnCaption(1, "Category"); | |
workSheet.SetColumnCaption(2, "Price"); |