Specifies where the search string is found.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Enum SearchFoundFlags
Inherits Enum |
| C# | |
|---|
public enum SearchFoundFlags : Enum |
Members
Example
This example returns the row and column of the found text if it is in a cell.
| C# | Copy Code |
|---|
int rowindx = 0; int colindx =
0; int sheetindx = 0
FarPoint.Win.Spread.SearchFoundFlags sff;
sff = fpSpread1.Search(0, 0, "Davolio",false, false, false, true, true, false, false, 0, 0, 10,
5, ref sheetindx, ref rowindx, ref colindx);
if (sff = FarPoint.Win.Spread.SearchFoundFlags.CellText)
{
MessageBox.Show("The text was found in cell " & rowindx & " -
" & colindx)
} |
| Visual Basic | Copy Code |
|---|
Dim rowindx As Integer
Dim colindx As Integer
Dim sheetindx As Integer
Dim sff As FarPoint.Win.Spread.SearchFoundFlags
sff = FpSpread1.Search(0, 0, "Davolio", False, False, False, True, True, False, False, 0, 0, 10, 5, sheetindx, rowindx, colindx)
If sff = FarPoint.Win.Spread.SearchFoundFlags.CellText Then
MessageBox.Show("The text was found in cell " & rowindx & " - " & colindx)
End If |
Remarks
Inheritance Hierarchy
See Also