Skip to main content
Version: 4.1

TabPage

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a single tab page in a TabControl.

public class TabPage : Panel

Constructors​

Instance member TabPage()​

Initializes a new instance of the TabPage class.

Instance member TabPage(text)​

Initializes a new instance of the TabPage class and specifies the text to display as the title the tab.

NameTypeDescription
textStringThe text for the tab.

Properties​

Instance member AllowHtml​

Boolean: Returns or sets a value indicating that the control can display html in the Text property. (Default: False)

Newlines (CRLF) are converted to <BR/> when

allowHtml is false, or when

allowHtml is true and the text doesn't contain any html.

Instance member CharacterCasing​

CharacterCasing: Returns or sets the case of the text to display to the user. (Default: Normal)

Instance member Hidden​

Boolean: Returns or sets whether the TabPage is visible in the parent TabControl. (Default: False)

Instance member ImageIndex​

Int32: Returns or sets the index for the image in the ImageList of the associated TabControl. (Default: -1)

Throws:

Instance member ImageKey​

String: Returns or sets the key accessor for the image in the ImageList of the associated TabControl. (Default: "")

Instance member ShowCloseButton​

Boolean: Returns or sets a value indicating that the tab can show the close button next to the name. (Default: False)

Instance member ShowInVisibilityMenu​

Boolean: Returns or sets whether the tab page should be included in the visibility menu. (Default: True)

Instance member TabBackColor​

Color: Returns or sets the background color of the TabPage tab button. (Default: Color [Empty])

Instance member TabControl​

TabControl: Returns the parent TabControl.

Instance member TabForeColor​

Color: Returns or sets the text color of the TabPage tab button. (Default: Color [Empty])

Instance member Text​

String: Returns or sets the text to display on the tab. (Default: "")

Instance member ToolTipText​

String: Returns or sets the ToolTip text for this tab. (Default: "")

Instance member UseMnemonic​

Boolean: Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True)

Instance member Visible​

Boolean: Returns or sets whether the control and all its child controls are displayed. (Default: False)

Methods​

Protected member CreateControlsInstance()​

Returns: ControlCollection. A new instance of ControlCollection assigned to the control.

Static member GetTabPageOfComponent(control)​

Retrieves the tab page that contains the specified Control.

ParameterTypeDescription
controlControlThe Control to look for.

Returns: TabPage. The TabPage that contains the specified Control, or null if it cannot be found.

Instance member GetTabRect()​

Returns the bounding rectangle for a specified tab in this tab control.

Returns: Rectangle. A Rectangle that represents the bounds of the specified tab.

Protected member GetThemeStateName()​

Returns: String.

Protected member OnTextChanged(e)​

Fires the TextChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)​

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Protected member RenderPanelProperties(config)​

ParameterTypeDescription
configObject

Protected member Select()​

Selects the current TabPage.

Protected member SetBoundsCore(x, y, width, height, specified)​

This member overrides SetBoundsCore.

ParameterTypeDescription
xInt32The new Left property value of the control.
yInt32The new Top property value of the control.
widthInt32The new Width property value of the control.
heightInt32The new Height property value of the control.
specifiedBoundsSpecifiedA combination of BoundsSpecified values.

Instance member Update()​

Overridden to update the parent TabControl when in design mode.

Events​

Instance member TextChanged​

EventHandler Fired when the value of the Text property changes.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IImageProvides access to common image properties across the controls that implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.