SpreadJS Documentation
foundRowIndex Field
The index of the row at which a match is found.
Syntax
var instance = new GcSpread.Sheets.SearchResult();
var value; // Type: number
value = instance.foundRowIndex;
var foundRowIndex : number;
Example
This example gets the foundRowIndex property.
activeSheet.getCell(5,4).text("testSearch");
var searchCondition = new GcSpread.Sheets.SearchCondition();
searchCondition.searchString = "testSearch";
searchCondition.startSheetIndex = spread.getActiveSheetIndex();
searchCondition.endSheetIndex = spread.getActiveSheetIndex();
searchCondition.searchOrder = GcSpread.Sheets.SearchOrder.NOrder;
searchCondition.searchTarget = GcSpread.Sheets.SearchFoundFlags.CellText;
searchCondition.searchFlags = GcSpread.Sheets.SearchFlags.Ignorecase| GcSpread.Sheets.SearchFlags.UseWildCards;
var searchresult= spread.search(searchCondition);
var str ="[searchFoundFlag:"+ searchresult.searchFoundFlag+",\r\n foundSheetIndex:"+searchresult.foundSheetIndex+",foundRowIndex:" + searchresult.foundRowIndex+", foundColumnIndex:"+searchresult.foundColumnIndex+", foundString:"+searchresult.foundString+"]";
alert(str);
See Also

Reference

SearchResult type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.