Aspose.Cells.GridWeb.Examples.CSharp.RowsAndColumns.CustomizeHeaders.CreateColumnCaptions C# (CSharp) Méthode

CreateColumnCaptions() private méthode

private CreateColumnCaptions ( ) : void
Résultat void
        private void CreateColumnCaptions()
        {
            // ExStart:CustomizeColumnHeader
            // 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");
            // ExEnd:CustomizeColumnHeader
        }