[]
        
(Showing Draft Content)

GC.Spread.Sheets.Search.SearchFoundFlags

枚举: SearchFoundFlags

Sheets.Search.SearchFoundFlags

在何处找到搜索字符串

代码示例

//本示例使用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

枚举值成员

枚举值成员

cellFormula

cellFormula = 8

在单元格公式中找到该字符串


cellTag

cellTag = 4

在单元格标签中找到了字符串


cellText

cellText = 1

在单元格文本中找到该字符串


none

none = 0

找不到字符串