[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheet.Select

Select Method

Select(bool)

Selects the worksheet.

If replace is true, the current selection is replaced with this worksheet. If replace is false, this worksheet is added to the current selection.

Declaration
void Select(bool replace = true)
Sub [Select](Optional replace As Boolean = True)
Parameters
Type Name Description
bool replace true to replace the current selection with this worksheet; false to extend the current selection to include this worksheet.
Examples
workbook.Worksheets.Add();
IWorksheet sheet2 = workbook.Worksheets[1];
worksheet.Select(true);
sheet2.Select(false);