Share via


TABSTRIP Element | TabStrip Class

This class represents the TabStrip control that contains a row of Tabs and TabSeparators.

Syntax

Visual Basic  Public  Class TabStrip Inherits BasePostBackControl
C# public   class TabStrip : BasePostBackControl
Managed C++ public:  __gc class TabStrip :  public BasePostBackControl
JScript public   class TabStrip extends BasePostBackControl

Inheritance Hierarchy

Object::Control::WebControl::BaseRichControl::BasePostBackControl

Remarks

The TabStrip control enables a menu-like selection of topics.

The TabStrip control is tightly connected to a second type of Windows Internet Explorer WebControls: the MULTIPAGE control. The MULTIPAGE control links a TAB to a page view.

The TabStrip control is declared within the <TabStrip> tags. Most style and property attributes of the TabStrip control are optional. By setting the style and/or property attributes, you can set the default styles and/or properties for all TABs and TABSEPARATORs. However, the style and/or property attributes can be overwritten within each TAB or TABSEPARATOR tags. This provides authors with greater flexibility when creating a personalized TabStrip control.

A TABSTRIP can start and end with special TABSEPARATORs to indicate the beginning and end of the TABSTRIP. You can also use the TABSEPARATOR element to separate TABs on the TABSTRIP.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the TabStrip object.

Attribute Property Description
AUTOPOSTBACK AutoPostBack Sets or retrieves a value that indicates whether or not the control posts back to the server each time a user interacts with the control.
DEFAULTIMAGEURL DefaultImageUrl Sets or retrieves the URL of the image as default for all inactive elements.
DEFAULTSTYLE DefaultStyle Sets or retrieves a value that indicates the default style for the element.
Items Retrieves the collection of Items in the control.
NeedHelper Returns true, indicating that a hidden helper is needed by the control.
ORIENTATION Orientation Sets or retrieves a value that indicates the alignment of the object within the document.
SELECTEDINDEX SelectedIndex Sets or retrieves a value that indicates the index of the selected object.
SEPDEFAULTIMAGEURL SepDefaultImageUrl Sets or retrieves a value that indicates the URL of the image as default for all inactive separators.
SEPDEFAULTSTYLE SepDefaultStyle Sets or retrieves a value that indicates the default style for all inactive separators.
SEPHOVERIMAGEURL SepHoverImageUrl Sets or retrieves a value that indicates the URL of the image for the TABSTRIP element when the user hovers the mouse pointer over it.
SEPHOVERSTYLE SepHoverStyle Sets or retrieves a value that indicates the style of the TABSTRIP element when the user hovers the mouse pointer over it.
SEPSELECTEDIMAGEURL SepSelectedImageUrl Sets or retrieves a value that indicates the URL of the image for the active separators left and right (above and below) of the active TAB.
SEPSELECTEDSTYLE SepSelectedStyle Sets or retrieves a value that indicates the style for the active separators left and right (above and below) of the active TAB.
TABDEFAULTSTYLE TabDefaultStyle Sets or retrieves a value that indicates the default style for all inactive tabs.
TABHOVERSTYLE TabHoverStyle Sets or retrieves a value that indicates the style of the TABSTRIP element when the user hovers the mouse pointer over it.
TABSELECTEDSTYLE TabSelectedStyle Sets or retrieves a value that defines the style for the active TAB.
TARGET Target Retrieves a value that indicates the MultiPage object based on the TargetID.
TARGETID TargetID Enables you to automatically link tabs to a MULTIPAGE control.
Element Object Description
TAB Tab This class represents a Tab within a TabStrip.
TABSEPARATOR TabSeparator This class represents a TabSeparator within a TabStrip.
Event Description
SelectedIndexChange Fires when selectedIndex changes for MULTIPAGE or TABSTRIP.
Method Description
CreateControlCollection Creates an EmptyControlCollection object to prevent controls from being added to the ControlCollection.
LoadViewState Loads the item's previously saved view state.
OnInit Initializes the object.
OnLoad Loads the object.
OnPreRender Updates the hidden input's data.
OnSelectedIndexChange Fires the SelectedIndexChange event.
ProcessData Processes post-back data for the server control from the hidden helper's data.
RaisePostDataChangedEvent Signals the server control object to notify the ASP.NET application that the state of the control has changed.
RenderContents Renders the contents of the control into the specified HtmlTextWriter.
RenderDesignerPath Implements the rendering path for the Microsoft Visual Studio .NET Editor.
RenderDownLevelPath Implements the downLevel rendering path in this method.
RenderUpLevelPath Implements the uplevel rendering path for this method.
SaveViewState Saves changes to the item's view state to an object.
TrackViewState Instructs the control to track changes to its view state.

Class Information

Namespace Microsoft.Web.UI.WebControls
Assembly Microsoft.Web.UI.WebControls.dll

See Also

Internet Explorer WebControls, About the TabStrip WebControl