تخصيص رؤوس الصفوف والأعمدة

تخصيص رأس الصف

لتخصيص العنوان أو التسمية التوضيحية لصف:

  1. قم بإضافة عنصر تحكم Aspose.Cells.GridWeb إلى نموذج ويب.
  2. قم بالوصول إلى ورقة العمل في GridWorksheetCollection.
  3. قم بتعيين التسمية التوضيحية لأي صف محدد.

تم تخصيص رؤوس الصف 1 و 2

ما يجب القيام به: image_بديل_نص

// 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");

تخصيص رأس العمود

لتخصيص رأس العمود أو التسمية التوضيحية له:

  1. قم بإضافة عنصر تحكم Aspose.Cells.GridWeb إلى نموذج ويب.
  2. قم بالوصول إلى ورقة العمل في GridWorksheetCollection.
  3. قم بتعيين التسمية التوضيحية لأي عمود محدد.

تم تخصيص رؤوس الأعمدة 1 و 2 و 3

ما يجب القيام به: image_بديل_نص

// 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");