Spread Windows Forms 6.0 Product Documentation
TabStripInfo Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > HitTestInformation Class : TabStripInfo Property


Glossary Item Box

Gets more detailed hit test information for the tab strip.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property TabStripInfo As TabStripHitTestInformation
Visual Basic (Usage)Copy Code
Dim instance As HitTestInformation
Dim value As TabStripHitTestInformation
 
value = instance.TabStripInfo
C# 
public TabStripHitTestInformation TabStripInfo {get;}

Property Value

TabStripHitTestInformation object containing the hittest information for the tab strip

Remarks

This example returns the button from the tab strip that the user clicks.

Example

This example returns the button from the tab strip that the user clicks.
C#Copy Code
void fpSpread1SheetTabClick(object sender, SheetTabClickEventArgs e)
{
      Rectangle r = fpSpread1.GetRootWorkbook().GetTabStripRectangle();
      FarPoint.Win.Spread.HitTestInformation hti;
      hti = fpSpread1.HitTest(r.X, r.Y);
      if (hti.Type == HitTestType.TabStrip)
      {
            MessageBox.Show(hti.TabStripInfo.Button.ToString());
      }    
}
Visual BasicCopy Code
Private Sub FpSpread1SheetTabClick(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetTabClickEventArgs)
      Dim r As Rectangle
      r = FpSpread1.GetRootWorkbook.GetTabStripRectangle()

      Dim hti As FarPoint.Win.Spread.HitTestInformation
      hti = FpSpread1.HitTest(r.X, r.Y)
      If hti.Type = HitTestType.TabStrip Then
            MsgBox(hti.TabStripInfo.Button)
      End If
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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