XlsFile.SetSheetSelected Method
This method will set a sheet tab as selected. Note that this is different from ExcelFile.ActiveSheet in that you might have only a single active sheet, but you might select many tabs by ctrl-clicking them. Also note that whenever you change the ExcelFile.ActiveSheet, the selected sheets will be reset to the active sheet only. So if you want to save a file with more than one selected sheet, you should call this method after the last call to activesheet. This property can work in different windows depending on the value of ExcelFile.ActiveWindow
Syntax
Namespace: FlexCel.XlsAdapter
public override void SetSheetSelected(Int32 sheetIndex, Boolean selected)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
sheetIndex | Int32 | Sheet index for the sheet we want to select or unselect.(1 based) | |
selected | Boolean | If true the sheet will be selected, otherwise it will be unselected. |