# TabPageExtensions

Namespace: **Wisej.Web.Markup**

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

Adds [fluent markup](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/markup) extension methods to the [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage) class.

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

```csharp
public class TabPageExtensions
```

{% endtab %}

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

```visual-basic
Public Class TabPageExtensions
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) AllowHtml\<TTabPage>(tabPage, value)

Sets the AllowHtml property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the AllowHtml property.                                                                                |
| **value**    | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                       | A boolean indicating whether HTML is allowed in the tab page.                                                                        |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated AllowHtml property.

This method allows you to enable or disable HTML content in the tab page.

```csharp

myTabPage.AllowHtml(true);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) CharacterCasing\<TTabPage>(tabPage, casing)

Sets the CharacterCasing property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the CharacterCasing property.                                                                          |
| **casing**   | [CharacterCasing](https://docs.wisej.com/api/wisej.web/editors/wisej.web.charactercasing)             | The [CharacterCasing](#charactercasing``1) to set for the tab page.                                                                  |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated CharacterCasing property.

This method allows you to specify the character casing for text in the tab page.

```csharp

myTabPage.CharacterCasing(CharacterCasing.Upper);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) HeaderBackColor\<TTabPage>(tabPage, color)

Sets the HeaderBackColor property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the HeaderBackColor property.                                                                          |
| **color**    | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color)                                   | The [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) to set as the header back color.                             |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated HeaderBackColor property.

This method allows you to specify the background color of the tab header.

```csharp

myTabPage.HeaderBackColor(Color.Gray);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) HeaderForeColor\<TTabPage>(tabPage, color)

Sets the HeaderForeColor property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the HeaderForeColor property.                                                                          |
| **color**    | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color)                                   | The [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) to set as the header fore color.                             |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated HeaderForeColor property.

This method allows you to specify the foreground color of the tab header.

```csharp

myTabPage.HeaderForeColor(Color.Black);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Hidden\<TTabPage>(tabPage, value)

Sets the Hidden property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the Hidden property.                                                                                   |
| **value**    | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                       | A boolean indicating whether the tab page is hidden.                                                                                 |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated Hidden property.

This method allows you to hide or show the tab page.

```csharp

myTabPage.Hidden(true);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) ShowInVisibilityMenu\<TTabPage>(tabPage, value)

Sets the ShowInVisibilityMenu property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the ShowInVisibilityMenu property.                                                                     |
| **value**    | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                       | A boolean indicating whether the tab page is shown in the visibility menu.                                                           |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated ShowInVisibilityMenu property.

This method allows you to control whether the tab page appears in a visibility menu.

```csharp

myTabPage.ShowInVisibilityMenu(true);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) TabBackColor\<TTabPage>(tabPage, color)

Sets the TabBackColor property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the TabBackColor property.                                                                             |
| **color**    | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color)                                   | The [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) to set as the tab back color.                                |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated TabBackColor property.

This method allows you to specify the background color of the tab.

```csharp

myTabPage.TabBackColor(Color.Blue);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) TabForeColor\<TTabPage>(tabPage, color)

Sets the TabForeColor property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the TabForeColor property.                                                                             |
| **color**    | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color)                                   | The [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) to set as the tab fore color.                                |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated TabForeColor property.

This method allows you to specify the foreground color of the tab.

```csharp

myTabPage.TabForeColor(Color.White);

```

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) UseMnemonic\<TTabPage>(tabPage, value)

Sets the UseMnemonic property of the specified [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage).

| Parameter    | Type                                                                                                  | Description                                                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **TTabPage** |                                                                                                       | The type of the tab page, must inherit from [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage). |
| **tabPage**  | [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions) | The tab page for which to set the UseMnemonic property.                                                                              |
| **value**    | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                       | A boolean indicating whether mnemonic characters are used.                                                                           |

**Returns:** [TTabPage](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.tabpageextensions). The modified tab page with the updated UseMnemonic property.

This method allows you to enable or disable the use of mnemonic characters in the tab page.

```csharp

myTabPage.UseMnemonic(true);

```
