Skip to main content
Version: 4.1

TabPageExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the TabPage class.

public class TabPageExtensions

Methods

Static member AllowHtml<TTabPage>(tabPage, value)

Sets the AllowHtml property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the AllowHtml property.
valueBooleanA boolean indicating whether HTML is allowed in the tab page.

Returns: TTabPage. The modified tab page with the updated AllowHtml property.

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


myTabPage.AllowHtml(true);

Static member CharacterCasing<TTabPage>(tabPage, casing)

Sets the CharacterCasing property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the CharacterCasing property.
casingCharacterCasingThe CharacterCasing to set for the tab page.

Returns: TTabPage. The modified tab page with the updated CharacterCasing property.

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


myTabPage.CharacterCasing(CharacterCasing.Upper);

Static member HeaderBackColor<TTabPage>(tabPage, color)

Sets the HeaderBackColor property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the HeaderBackColor property.
colorColorThe Color to set as the header back color.

Returns: TTabPage. The modified tab page with the updated HeaderBackColor property.

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


myTabPage.HeaderBackColor(Color.Gray);

Static member HeaderForeColor<TTabPage>(tabPage, color)

Sets the HeaderForeColor property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the HeaderForeColor property.
colorColorThe Color to set as the header fore color.

Returns: TTabPage. The modified tab page with the updated HeaderForeColor property.

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


myTabPage.HeaderForeColor(Color.Black);

Static member Hidden<TTabPage>(tabPage, value)

Sets the Hidden property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the Hidden property.
valueBooleanA boolean indicating whether the tab page is hidden.

Returns: TTabPage. The modified tab page with the updated Hidden property.

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


myTabPage.Hidden(true);

Static member ShowInVisibilityMenu<TTabPage>(tabPage, value)

Sets the ShowInVisibilityMenu property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the ShowInVisibilityMenu property.
valueBooleanA boolean indicating whether the tab page is shown in the visibility menu.

Returns: TTabPage. The modified tab page with the updated ShowInVisibilityMenu property.

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


myTabPage.ShowInVisibilityMenu(true);

Static member TabBackColor<TTabPage>(tabPage, color)

Sets the TabBackColor property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the TabBackColor property.
colorColorThe Color to set as the tab back color.

Returns: TTabPage. The modified tab page with the updated TabBackColor property.

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


myTabPage.TabBackColor(Color.Blue);

Static member TabForeColor<TTabPage>(tabPage, color)

Sets the TabForeColor property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the TabForeColor property.
colorColorThe Color to set as the tab fore color.

Returns: TTabPage. The modified tab page with the updated TabForeColor property.

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


myTabPage.TabForeColor(Color.White);

Static member UseMnemonic<TTabPage>(tabPage, value)

Sets the UseMnemonic property of the specified TabPage.

ParameterTypeDescription
TTabPageThe type of the tab page, must inherit from TabPage.
tabPageTTabPageThe tab page for which to set the UseMnemonic property.
valueBooleanA boolean indicating whether mnemonic characters are used.

Returns: TTabPage. 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.


myTabPage.UseMnemonic(true);