Spread Windows Forms 7.0 Product Documentation
TabStripRatio Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : TabStripRatio Property


Glossary Item Box

Gets or sets the width of the tab strip in the view expressed as a percentage of the overall horizontal width of the control.

Syntax

Visual Basic (Declaration) 
Public Property TabStripRatio As Double
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim value As Double
 
instance.TabStripRatio = value
 
value = instance.TabStripRatio
C# 
public double TabStripRatio {get; set;}

Property Value

Double-precision, floating point number representing the ratio of the tab strip width to scroll bar width

Remarks

If you set the ratio by dragging the tab strip bar in Spread Designer, the new setting for the ratio is not saved unless you make another change in Spread Designer or click the Properties list.

For more information about displaying sheet tabs, see Customizing the Sheet Name Tabs.

Example

This example sets the TabStripRatio property.
C#Copy Code
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always;        
sv.TabStripRatio = 30;
VB.NETCopy Code
Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
sv.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always
sv.TabStripRatio = 30

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.