java.lang.Object
com.aspose.cells.FindOptions
public class FindOptions
- extends java.lang.Object
Represents find options.
Example:
//Instantiate the workbook object
Workbook workbook = new Workbook("C:\\book1.xls");
//Get Cells collection
Cells cells = workbook.getWorksheets().get(0).getCells();
//Instantiate FindOptions Object
FindOptions findOptions = new FindOptions();
//Create a Cells Area
CellArea ca = new CellArea();
ca.StartRow = 8;
ca.StartColumn = 2;
ca.EndRow = 17;
ca.EndColumn = 13;
//Set cells area for find options
findOptions.setRange(ca);
//Set searching properties
findOptions.setSearchNext(true);
findOptions.setSeachOrderByRows(true);
findOptions.setLookInType(LookInType.VALUES);
//Find the cell with 0 value
Cell cell = cells.find(0, null, findOptions);
FindOptions
public FindOptions()
-
|
Property Getters/Setters Detail |
setCaseSensitive | |
public void setCaseSensitive(boolean value)
|
-
Indicates if the searched string is case sensitive.
NOTE: This member is now obsolete. Instead,
please use FindOptions.CaseSensitive property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.
getCaseSensitive/setCaseSensitive | |
public boolean getCaseSensitive() / public void setCaseSensitive(boolean value)
|
-
Indicates if the searched string is case sensitive.
setCaseSensitive | |
public void setCaseSensitive(boolean value)
|
-
Indicates if the searched string is case sensitive.
getLookAtType/setLookAtType | |
public int getLookAtType() / public void setLookAtType(int value)
|
-
Look at type.
The value of the property is LookAtType integer constant.
setLookAtType | |
public void setLookAtType(int value)
|
-
Look at type.
The value of the property is LookAtType integer constant.
isRangeSet | |
public boolean isRangeSet()
|
-
Indicates whether the searched range is set.
getSearchNext/setSearchNext | |
public boolean getSearchNext() / public void setSearchNext(boolean value)
|
-
Search order. True: search next. False: search previous.
NOTE: This member is now obsolete. Instead,
please use FindOptions.SearchBackward property.
This property will be removed 12 months later since November 2018.
Aspose apologizes for any inconvenience you may have experienced.
setSearchNext | |
public void setSearchNext(boolean value)
|
-
Search order. True: search next. False: search previous.
NOTE: This member is now obsolete. Instead,
please use FindOptions.SearchBackward property.
This property will be removed 12 months later since November 2018.
Aspose apologizes for any inconvenience you may have experienced.
getSearchBackward/setSearchBackward | |
public boolean getSearchBackward() / public void setSearchBackward(boolean value)
|
-
Whether search backward for cells.
setSearchBackward | |
public void setSearchBackward(boolean value)
|
-
Whether search backward for cells.
getSeachOrderByRows/setSeachOrderByRows | |
public boolean getSeachOrderByRows() / public void setSeachOrderByRows(boolean value)
|
-
Indicates whether search order by rows or columns.
setSeachOrderByRows | |
public void setSeachOrderByRows(boolean value)
|
-
Indicates whether search order by rows or columns.
getLookInType/setLookInType | |
public int getLookInType() / public void setLookInType(int value)
|
-
Look in type.
The value of the property is LookInType integer constant.
setLookInType | |
public void setLookInType(int value)
|
-
Look in type.
The value of the property is LookInType integer constant.
getRegexKey/setRegexKey | |
public boolean getRegexKey() / public void setRegexKey(boolean value)
|
-
Indicates whether the searched key is regex. If true then the searched key will be taken as regex.
setRegexKey | |
public void setRegexKey(boolean value)
|
-
Indicates whether the searched key is regex. If true then the searched key will be taken as regex.
getValueTypeSensitive/setValueTypeSensitive | |
public boolean getValueTypeSensitive() / public void setValueTypeSensitive(boolean value)
|
-
Indicates whether searched cell value type should be same with the searched key.
setValueTypeSensitive | |
public void setValueTypeSensitive(boolean value)
|
-
Indicates whether searched cell value type should be same with the searched key.
getStyle/setStyle | |
public Style getStyle() / public void setStyle(Style value)
|
-
The format to search for.
setStyle | |
public void setStyle(Style value)
|
-
The format to search for.
getConvertNumericData/setConvertNumericData | |
public boolean getConvertNumericData() / public void setConvertNumericData(boolean value)
|
-
Gets or sets a value that indicates whether converting the searched string value to numeric data.
setConvertNumericData | |
public void setConvertNumericData(boolean value)
|
-
Gets or sets a value that indicates whether converting the searched string value to numeric data.
-
Gets and sets the searched range.
- Returns:
-
Returns the searched range.
setRange | |
public void setRange(CellArea ca) |
-
Sets the searched range.
- Parameters:
ca - the searched range.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.