Search code examples
spreadsheetgear

How does one select an entire worksheet with Spreadsheet gear (.NET)


I am using the Spreadsheet gear component and need to select all cells in a worksheet so I can apply a consistent font setting across. How do you create an IRange that represents an entire worksheet?


Solution

  • IWorksheet.Cells represents all cells in a worksheet:

    workbook.Worksheets["Sheet1"].Cells.Font.Color = SpreadsheetGear.Colors.Yellow;