Spread Silverlight Documentation
TabStop Property (StyleInfo)
Example 


Gets or sets a value that indicates whether the user can set focus to the cell using the Tab key.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Overridable Property TabStop As System.Boolean
'Usage
 
Dim instance As StyleInfo
Dim value As System.Boolean
 
instance.TabStop = value
 
value = instance.TabStop
[System.ComponentModel.DefaultValue()]
public virtual System.bool TabStop {get; set;}

Property Value

true if the user can set focus to the cell using the Tab key otherwise, false.
Example
This example sets the TabStop property.
GrapeCity.Windows.SpreadSheet.Data.StyleInfo style = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
style.TabStop = false;
style.ShrinkToFit = true;
style.Name = "Style1";
gcSpreadSheet1.ActiveSheet.NamedStyles.Add(style);
gcSpreadSheet1.ActiveSheet.Cells[1, 1].StyleName = "Style1";
listBox1.Items.Add(style.IsShrinkToFitSet().ToString());
listBox1.Items.Add(style.IsTabStopSet().ToString());
//style.ResetTabStop();
//style.ResetShrinkToFit();
Dim style As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
style.TabStop = False
style.ShrinkToFit = True
style.Name = "Style1"
GcSpreadSheet1.ActiveSheet.NamedStyles.Add(style)
GcSpreadSheet1.ActiveSheet.Cells(1, 1).StyleName = "Style1"
ListBox1.Items.Add(style.IsShrinkToFitSet.ToString())
ListBox1.Items.Add(style.IsTabStopSet.ToString())
'style.ResetTabStop()
'style.ResetShrinkToFit()
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.