var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: SearchResult value = instance.search(searchCondition);
function search( searchCondition : SearchCondition ) : SearchResult;
パラメータ
- searchCondition
- 検索条件。
戻り値の型
検索結果。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: SearchResult value = instance.search(searchCondition);
function search( searchCondition : SearchCondition ) : SearchResult;
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);