# SearchForVirtualItemEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [SearchForVirtualItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#searchforvirtualitem) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SearchForVirtualItemEventArgs : EventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SearchForVirtualItemEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SearchForVirtualItemEventArgs(isPrefixSearch, includeSubItemsInSearch, text, startIndex)

Initializes a new instance of the [SearchForVirtualItemEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.searchforvirtualitemeventargs) class.

| Name                        | Type                                                            | Description                                                                                                                                         |
| --------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **isPrefixSearch**          | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | A value indicating whether the search is a prefix search.                                                                                           |
| **includeSubItemsInSearch** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | A value indicating whether to include sub items of list items in the search.                                                                        |
| **text**                    | [String](https://docs.microsoft.com/dotnet/api/system.string)   | The text of the item to search for.                                                                                                                 |
| **startIndex**              | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)     | The index of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) at which to start the search. |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IncludeSubItemsInSearch

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the search should include sub items of list items.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Index

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the index of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) found in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) .

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsPrefixSearch

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the search should return an item if its text starts with the search text.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StartIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem) where the search starts.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Text

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns the text used to find an item in the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.

## Used By

| Name                                                                                                                                         | Description                                                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SearchForVirtualItemEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.searchforvirtualitemeventhandler) | Represents the method that will handle the [SearchForVirtualItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#searchforvirtualitem) event of a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview). |
