تخصيص رؤوس الصفوف والأعمدة
Contents
[
Hide
]
مثل Microsoft Excel ، Aspose.Cells. يستخدم موقع GridWeb أيضًا الرؤوس أو التسميات التوضيحية القياسية للصفوف (أرقام مثل 1 و 2 و 3 وما إلى ذلك) والأعمدة (أبجديًا مثل A و B و C وما إلى ذلك). Aspose.Cells.GridWeb يجعل من الممكن أيضًا تخصيص التسميات التوضيحية. يناقش هذا الموضوع تخصيص رؤوس الصفوف والأعمدة في وقت التشغيل باستخدام Aspose.Cells.GridWeb API.
تخصيص رأس الصف
لتخصيص العنوان أو التسمية التوضيحية لصف:
- قم بإضافة عنصر تحكم Aspose.Cells.GridWeb إلى نموذج ويب.
- قم بالوصول إلى ورقة العمل في GridWorksheetCollection.
- قم بتعيين التسمية التوضيحية لأي صف محدد.
تم تخصيص رؤوس الصف 1 و 2
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 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 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 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"); |