行と列のヘッダーをカスタマイズ

行ヘッダーのカスタマイズ

行のヘッダーやキャプションをカスタマイズするには:

  1. Web フォームに Aspose.Cells.GridWeb コントロールを追加します。
  2. GridWorksheetCollection内のワークシートにアクセスします。
  3. 指定した行のキャプションを設定します。

行1と2のヘッダーがカスタマイズされました

todo:image_alt_text

// 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. Web フォームに Aspose.Cells.GridWeb コントロールを追加します。
  2. GridWorksheetCollection内のワークシートにアクセスします。
  3. 指定した列のキャプションを設定します。

列1、2、3のヘッダーがカスタマイズされました

todo:image_alt_text

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