Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / TabControlPolicy Enumeration
Example Example


In This Topic
    TabControlPolicy Enumeration
    In This Topic
    Specifies how (if at all) sheet name tabs are displayed in the command bar in the Spread component.
    Syntax
    'Declaration
     
    
    Public Enum TabControlPolicy 
       Inherits System.Enum
    'Usage
     
    
    Dim instance As TabControlPolicy
    public enum TabControlPolicy : System.Enum 
    Members
    MemberDescription
    AlwaysDisplays sheet name tabs at all times
    AsNeededDisplays sheet name tabs only when needed
    NeverDoes not display sheet name tabs
    Remarks

    Use these settings in the TabInfo TabControlPolicy property to set the display of sheet name tabs.

    Example
    This example shows how to set the properties of the TabInfo object (that governs the sheet name tabs).
    FpSpread1.Sheets.Count=3;
    FpSpread1.Tab.ActiveTabBackColor=Color.Yellow;
    FpSpread1.Tab.ActiveTabBorderColor=Color.Red;
    FpSpread1.Tab.FirstVisibleTab=1;
    FpSpread1.Tab[0]="First";
    FpSpread1.Tab[1]="Second";
    FpSpread1.Tab[2]="Third";
    FpSpread1.Tab.TextColor=Color.Red;
    FpSpread1.Tab.TabControlPolicy=FarPoint.Web.Spread.TabControlPolicy.Always;
    FpSpread1.Tab.VisibleCount=2;
    FpSpread1.Tab.ScrollIncrement=2;
    ListBox1.Items.Add(FpSpread1.Tab.Count.ToString());
    FpSpread1.Sheets.Count=3
    FpSpread1.Tab.ActiveTabBackColor=Color.Yellow
    FpSpread1.Tab.ActiveTabBorderColor=Color.Red
    FpSpread1.Tab.FirstVisibleTab=1
    FpSpread1.Tab.Item(0)="First"
    FpSpread1.Tab.Item(1)="Second"
    FpSpread1.Tab.Item(2)="Third"
    FpSpread1.Tab.TextColor=Color.Red
    FpSpread1.Tab.TabControlPolicy=FarPoint.Web.Spread.TabControlPolicy.Always
    FpSpread1.Tab.VisibleCount=2
    FpSpread1.Tab.ScrollIncrement=2
    ListBox1.Items.Add(FpSpread1.Tab.Count)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Web.Spread.TabControlPolicy

    See Also