[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Sheets.Search.SearchFoundFlags

Enumeration: SearchFoundFlags

Sheets.Search.SearchFoundFlags

指定搜索字符串的查找位置。

example

//此示例使用 SearchFlags 枚举。
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

cellComment

• cellComment = 16

表示在单元格注释中找到字符串。


cellFormula

• cellFormula = 8

表示在单元格公式中找到字符串。


cellTag

• cellTag = 4

表示在单元格标签中找到字符串。


cellText

• cellText = 1

表示在单元格文本中找到字符串。


cellThreadedComment

• cellThreadedComment = 32

表示在单元格评论中找到字符串。


none

• none = 0

表示未找到字符串。