Aspose.Cells.GridWeb.Examples.CSharp.RowsAndColumns.CustomizeHeaders.CreateColumnCaptions C# (CSharp) Метод

CreateColumnCaptions() приватный Метод

private CreateColumnCaptions ( ) : void
Результат 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
        }