SpreadJS 13
GC.Spread.Sheets Namespace / Search type / SearchFoundFlags Field
In This Topic
    SearchFoundFlags Field
    In This Topic
    Specifies where the search string is found.
    Syntax
    var value; // Type: SearchFoundFlags
    value = GC.Spread.Sheets.Search.SearchFoundFlags;
    var SearchFoundFlags : SearchFoundFlags;
    Example
    //This example uses the SearchFlags enumeration.
    activeSheet.getCell(2,3).value("testSearch");
    var searchCondition = new GC.Spread.Sheets.Search.SearchCondition();
    searchCondition.searchString = "testSearch";
    searchCondition.startSheetIndex = spread.getActiveSheetIndex();
    searchCondition.endSheetIndex = spread.getActiveSheetIndex();
    searchCondition.searchOrder = GC.Spread.Sheets.Search.SearchOrder.nOrder;
    searchCondition.searchTarget = GC.Spread.Sheets.Search.SearchFoundFlags.cellText;
    searchCondition.searchFlags = GC.Spread.Sheets.Search.SearchFlags.ignoreCase| GC.Spread.Sheets.Search.SearchFlags.useWildCards;
    var searchresult= activeSheet.search(searchCondition);
    var str ="[searchFoundFlag:"+ searchresult.searchFoundFlag+",\r\n foundSheetIndex:"+searchresult.foundSheetIndex+",foundRowIndex:" +
    searchresult.foundRowIndex+", foundColumnIndex:"+searchresult.foundColumnIndex+", foundString:"+searchresult.foundSheetIndex+"]";
    alert(str);
    See Also

    Reference

    Search type