Intersoft WebDesktop Documentation
WebTab Class
Members  Example  See Also  Send Feedback
ISNet.WebUI.WebDesktop Namespace : WebTab Class


Glossary Item Box

WebTab is a component which implements the appearances and rich behaviors of Tab in Dekstop application. The WebTab object represents the main operational area which contains a collection of tab items.

Object Model

WebTab Class

Syntax

Visual Basic (Declaration) 
Public Class WebTab 
   Inherits ISNet.WebUI.ISNetControl
   Implements ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings, ISNet.WebUI.ITemplateSync 
Visual Basic (Usage)Copy Code
Dim instance As WebTab
C# 
public class WebTab : ISNet.WebUI.ISNetControl, ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings, ISNet.WebUI.ITemplateSync  

Remarks

WebTab object is created by default to have a value of height 300px and width 500px which you can easily resize either by setting it in the property, or resizing it directly through the designer. You can specify the size of WebTab in pixels or in percentage measurement.

A WebTab object consists of a tab items collection. Each of this tab items has its own property that can be set individually, or set globally using the default property inherited from the WebTab object.

You can use WebTab control to build well-organized user interface in the form of "Tab" navigations and easily achieve modern visual styles with the ease of couple properties changes. WebTab features TrueShape rendering which lets you design a rich Windows XP-like Tab control without requiring any images.

WebTab also offers numerous innovative features, such as automatic scrolling and AllowClose. The scrolling feature lets you define as many tabs as you like without compromising the layout functions. The AllowClose feature gives a richer experience for your users by letting them close any unused tabs.

WebTab includes strong client side object model and API which lets developers to easily interact with the control programmatically. This capability enables you to extend the functions of the tab according to your application-specific scenarios.

To learn more on WebTab please refer to WebTab Overview and WebTab Features.

Example

The following example shows you how to load and save structure of WebTab programmatically. You need to create two WebTabs and two Buttons and insert the codes below OnClick Server Side Event. For more information please refer to Saving and Loading Structure Programmatically in See Also section
C#Copy Code
protected void Page_Load(object sender, EventArgs e)
{
    body.Style.Add("overflow", "hidden");
}
protected void Button1_Click(object sender, EventArgs e)
{
    WebTab2.LoadTabsStructureFromXml(Server.MapPath("Style1.xml"));
}
protected void Button2_Click(object sender, EventArgs e)
{
    WebTab1.SaveTabsStructureToXml(Server.MapPath("Style1.xml"));
}

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         ISNet.WebUI.ISNetControl
            ISNet.WebUI.WebDesktop.WebTab

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.