Search Results for

    Show / Hide Table of Contents

    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.

    See also

    • XlsFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com