0

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?

John Livermore
  • 30,235
  • 44
  • 126
  • 216

1 Answers1

2

IWorksheet.Cells represents all cells in a worksheet:

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

Tim Andersen
  • 3,014
  • 1
  • 15
  • 11