HeaderPane
Main
Hide
Share Link
Print

FindItem Method, SftBox Class

Searches the list for an item whose text matches.

Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public ItemClass FindItem(
    string text,
    int column,
    SearchModeEnum mode,
    ItemClass start );
Public Function FindItem(
    ByVal text As String,
    ByVal column As Integer,
    ByVal mode As SearchModeEnum,
    ByVal start As ItemClass
  ) As ItemClass

Parameters

text

The text to find.

column

The index of the column to search.

mode

Prefix, AutoComplete (both find text at the start of the cell text), Exact, or Contains and Filter (both find text anywhere in the cell text). The comparison ignores case and uses the current culture.

start

The item after which the search starts, or null/Nothing to start with the first item. The search wraps around to the first item.

Return Value

The first matching enabled item, or null/Nothing.

Comments

Searches the list for an item whose text matches.

The children of collapsed items are searched unless SftBox.SearchVisibleOnly is True; items the Filter search mode took out of the list are not searched.

See Also SftBox Class | Classes | SftBox/NET 3.0