[]
        
(Showing Draft Content)

GC.Spread.Sheets.Search.SearchFlags

Enumeration: SearchFlags

Sheets.Search.SearchFlags

Specifies the type of search flags.

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

blockRange

blockRange = 8

Determines whether to search within a cell range.


exactMatch

exactMatch = 2

Determines whether the search considers only an exact match.


ignoreCase

ignoreCase = 1

Determines whether the search considers the case of the letters in the search string.


none

none = 0

Specifies no search flags.


useWildCards

useWildCards = 4

Determines whether the search considers wildcard characters (*, ?) in the search string.