# GC.Spread.Sheets.Search.SearchFoundFlags

## Content

# Enumeration: SearchFoundFlags

[Sheets](../modules/GC.Spread.Sheets).[Search](../modules/GC.Spread.Sheets.Search).SearchFoundFlags

Specifies where the search string is found.

**`example`**
```javascript
//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

- [cellComment](GC.Spread.Sheets.Search.SearchFoundFlags#cellcomment)
- [cellFormula](GC.Spread.Sheets.Search.SearchFoundFlags#cellformula)
- [cellTag](GC.Spread.Sheets.Search.SearchFoundFlags#celltag)
- [cellText](GC.Spread.Sheets.Search.SearchFoundFlags#celltext)
- [none](GC.Spread.Sheets.Search.SearchFoundFlags#none)

## Enumeration members

### <a id="cellcomment" name="cellcomment"></a> cellComment

• **cellComment** = `16`

Indicates that the string is found in the cell comment.

___

### <a id="cellformula" name="cellformula"></a> cellFormula

• **cellFormula** = `8`

Indicates that the string is found in the cell formula.

___

### <a id="celltag" name="celltag"></a> cellTag

• **cellTag** = `4`

Indicates that the string is found in the cell tag.

___

### <a id="celltext" name="celltext"></a> cellText

• **cellText** = `1`

Indicates that the string is found in the cell text.

___

### <a id="none" name="none"></a> none

• **none** = `0`

Indicates that no string is found.
