Question

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?

Was it helpful?

Solution

IWorksheet.Cells represents all cells in a worksheet:

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top