SpreadJS Documentation
SearchCondition type
Defines the search condition.
Syntax
var instance = new GcSpread.Sheets.SearchCondition();
function SearchCondition;
Example
This example creates a new search condition.
var searchCondition = new GcSpread.Sheets.SearchCondition();
searchCondition.searchString = "testSearch";
searchCondition.startSheetIndex = spread.getActiveSheetIndex();
searchCondition.endSheetIndex = spread.getActiveSheetIndex();
searchCondition.searchOrder = GcSpread.Sheets.SearchOrder.NOrder;
searchCondition.searchTarget = GcSpread.Sheets.SearchFoundFlags.CellText;
searchCondition.searchFlags = GcSpread.Sheets.SearchFlags.Ignorecase| GcSpread.Sheets.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.foundSheetIndex+"]";
alert(str);
Inheritance Hierarchy

Object
   GcSpread.Sheets.SearchCondition

Constructors
 NameDescription
public ConstructorSearchCondition ConstructorDefines the search condition.  
Top
Fields
 NameDescription
public FieldcolumnEndThe index of the column at which to end.  
public FieldcolumnStartThe index of the column at which to start.  
public FieldendSheetIndexIndex of the sheet on which to end searching.  
public FieldrowEndThe index of the row at which to end.  
public FieldrowStartThe index of the row at which to start.  
public FieldsearchFlagsThe enumeration that specifies the options of the search.  
public FieldsearchOrderThe enumeration that specifies whether the search goes by coordinates of (column, row) or (row, column).  
public FieldsearchStringThe string for which to search.  
public FieldsearchTargetThe enumeration that indicates whether the search includes the content in the cell notes, tags, or text.  
public FieldsheetAreaThe area of the sheet for search.  
public FieldstartSheetIndexIndex of the sheet on which to start searching.  
Top
See Also

Reference

GcSpread.Sheets Namespace
Searching Data

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.