Spread for ASP.NET 9.0 Product Documentation
TabControlPolicy Property
Example 


Gets or sets when to display the sheet name tabs in the command bar of the Spread component.
Syntax
'Declaration
 
Public Property TabControlPolicy As TabControlPolicy
'Usage
 
Dim instance As TabInfo
Dim value As TabControlPolicy
 
instance.TabControlPolicy = value
 
value = instance.TabControlPolicy
public TabControlPolicy TabControlPolicy {get; set;}

Property Value

TabControlPolicy setting
Remarks

Valid values are given in the TabControlPolicy enumeration.

Example
This example shows how to set the display of 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) 
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

TabInfo Class
TabInfo Members
TabControlPolicy Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.