Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / StyleInfo Class / IsTabStopSet Method
Example


In This Topic
    IsTabStopSet Method
    In This Topic
    Gets a value that indicates whether the tab stop setting of the cell (TabStop property) is set.
    Syntax
    'Declaration
     
    Public Overridable Function IsTabStopSet() As System.Boolean
    'Usage
     
    Dim instance As StyleInfo
    Dim value As System.Boolean
     
    value = instance.IsTabStopSet()
    public virtual System.bool IsTabStopSet()

    Return Value

    true if the tab stop setting of the cell (TabStop property) is set; otherwise, false.
    Example
    This example uses the IsTabStopSet method.
    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 (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

    See Also