SpreadJS Documentation
SearchFoundFlags Enumeration
Specifies where the search string is found.
Members
MemberDescription
CellFormulaIndicates that the string is found in the cell formula.
CellTagIndicates that the string is found in the cell tag.
CellTextIndicates that the string is found in the cell text.
NoneIndicates that no string is found.
Example
This example uses the SearchFoundFlags enumeration.
activeSheet.getCell(2,3).value("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= activeSheet.search(searchCondition);

var str ="[searchFoundFlag:"+ searchresult.searchFoundFlag+",\r\n foundSheetIndex:"+searchresult.foundSheetIndex+",foundRowIndex:" +
searchresult.foundRowIndex+", foundColumnIndex:"+searchresult.foundColumnIndex+", foundString:"+searchresult.foundSheetIndex+"]";
 alert(str);
Inheritance Hierarchy

Object
   GcSpread.Sheets.SearchFoundFlags

See Also

Reference

GcSpread.Sheets Namespace
Searching Data

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.