Spread.Sheets
endSheetIndex フィールド
検索を終了するシートのインデックス。
シンタックス
Javascript (Usage) 
var instance = new GC.Spread.Sheets.Search.SearchCondition();
var value; // Type: number
value = instance.endSheetIndex;
Javascript (Specification) 
var endSheetIndex : number;
使用例
次のサンプルコードは、endSheetIndexプロパティを設定します。
activeSheet.getCell(5,4).text("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= spread.search(searchCondition);
var str ="[searchFoundFlag:"+ searchresult.searchFoundFlag+",\r\n foundSheetIndex:"+searchresult.foundSheetIndex+",foundRowIndex:" + searchresult.foundRowIndex+", foundColumnIndex:"+searchresult.foundColumnIndex+", foundString:"+searchresult.foundString+"]";
alert(str);

関連トピック

参照

SearchCondition タイプ

 

 


© 2016-2017, GrapeCity inc. All rights reserved.