ITabCellSearch.WholeWordsOnly

Syntax

WholeWordsOnly: Boolean;

Description

The WholeWordsOnly property determines whether only whole words matches are to be found.

Example

To execute the example a form with a button on it named Button1, the TabSheetBox component and the UiTabSheet component with the name UiTabSheet1 which is used as a data source for the TabSheetBox component are required.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TSheet: ITabSheet;
    CellSearch: ITabCellSearch;
    Result: ITabSearchResult;
    i, j: Integer;
Begin
    TSheet := UiTabSheet1.TabSheet;
    CellSearch := TSheet.CreateCellSearch;
    CellSearch.Text := "price";
    CellSearch.WholeWordsOnly := True;
    Result := CellSearch.Execute;
    If Result <> Null Then
        i := Result.CurrentRow;
        j := Result.CurrentColumn;
    End If;
End Sub Button1OnClick;

Clicking this button starts searching the "price" text in the cells. The whole word is searched for. After executing the event, the variable i will contain the row number, and the j - the cell column number.

See also:

ITabCellSearch