# TableLayoutRowStyleCollection

URL: https://docs.wisej.com/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection

Version: 4.1
Namespace: **Wisej.Web**

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

- [TableLayoutStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutstylecollection)
- [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection)
A collection that stores [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) objects.

- C# - VB.NET

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

```visual
Public Class TableLayoutRowStyleCollection
    Inherits TableLayoutStyleCollection
```

## Properties

### ![Instance member](/img/api/instance.png) Item(index)

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

## Methods

### ![Instance member](/img/api/instance.png) Add(rowStyle)

Adds a new [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) .

| Parameter | Type | Description | **rowStyle** | [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to add to the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) . 

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

### ![Instance member](/img/api/instance.png) Contains(rowStyle)

Determines whether the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) contains a specific style.

| Parameter | Type | Description | **rowStyle** | [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to locate in the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) . 

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

### ![Instance member](/img/api/instance.png) IndexOf(rowStyle)

Determines the index of a specific item in the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) .

| Parameter | Type | Description | **rowStyle** | [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) | The [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) to locate in the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) . 

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

### ![Instance member](/img/api/instance.png) Insert(index, rowStyle)

Inserts a [RowStyle](/api/wisej.web/containers/tablelayoutpanel/wisej.web.rowstyle) into the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) at the specified position.

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

### ![Instance member](/img/api/instance.png) Remove(rowStyle)

Removes the first occurrence of a specific object from the [TableLayoutRowStyleCollection](/api/wisej.web/containers/tablelayoutpanel/wisej.web.tablelayoutrowstylecollection) .

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