# TableLayoutRowStyleCollection

Namespace: **Wisej.Web**

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

* [TableLayoutStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutstylecollection)
  * [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection)

A collection that stores [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) objects.

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

```csharp
public class TableLayoutRowStyleCollection : TableLayoutStyleCollection
```

{% endtab %}

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

```visual-basic
Public Class TableLayoutRowStyleCollection
    Inherits TableLayoutStyleCollection
```

{% endtab %}
{% endtabs %}

## Properties

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

[RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle): Returns or sets the [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) at the specified index.

## Methods

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

Adds a new [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection).

| Parameter    | Type                                                                                                 | Description                                                                                                                                                                                                                                                            |
| ------------ | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowStyle** | [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to add to the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection). |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32). The position into which the new element was inserted.

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

Determines whether the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) contains a specific style.

| Parameter    | Type                                                                                                 | Description                                                                                                                                                                                                                                                               |
| ------------ | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowStyle** | [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to locate in the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection). |

**Returns:** [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean). true if the [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) is found in the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection); otherwise, false.

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

Determines the index of a specific item in the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection).

| Parameter    | Type                                                                                                 | Description                                                                                                                                                                                                                                                               |
| ------------ | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowStyle** | [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to locate in the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection). |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32). The index of *rowStyle* if found in the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection); otherwise, -1.

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

Inserts a [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) into the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) at the specified position.

| Parameter    | Type                                                                                                 | Description                                                                                                                                                                                                                                                                                        |
| ------------ | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **index**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                    | The zero-based index at which the [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) should be inserted.                                                                                                                                         |
| **rowStyle** | [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to insert into the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection). The value can be null. |

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

Removes the first occurrence of a specific object from the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection).

| Parameter    | Type                                                                                                 | Description                                                                                                                                                                                                                                                                                        |
| ------------ | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowStyle** | [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to remove from the [TableLayoutRowStyleCollection](https://docs.wisej.com/api/v3.0/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection). The value can be null. |
