[]
        
(Showing Draft Content)

GC.Spread.Sheets.Search.SearchFoundFlags

Enumeration: SearchFoundFlags

Sheets.Search.SearchFoundFlags

Specifies where the search string is found.

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);

Table of contents

Enumeration members

Enumeration members

cellFormula

cellFormula = 8

Indicates that the string is found in the cell formula.


cellTag

cellTag = 4

Indicates that the string is found in the cell tag.


cellText

cellText = 1

Indicates that the string is found in the cell text.


none

none = 0

Indicates that no string is found.