Spread Windows Forms 9.0 Product Documentation
Button Property (TabStripHitTestInformation)
Example 


Returns the tab strip button the location refers to.
Syntax
'Declaration
 
Public ReadOnly Property Button As TabStripButton
'Usage
 
Dim instance As TabStripHitTestInformation
Dim value As TabStripButton
 
value = instance.Button
public TabStripButton Button {get;}

Property Value

TabStripButton object containing the button for the tab strip
Example
This example returns the button location.
void fpSpread1SheetTabClick(object sender, SheetTabClickEventArgs e)
{
      Rectangle r = fpSpread1.GetRootWorkbook().GetTabStripRectangle();
      FarPoint.Win.Spread.HitTestInformation hti;
      FarPoint.Win.Spread.TabStripHitTestInformation ti;
      hti = fpSpread1.HitTest(r.X, r.Y);
      ti = hti.TabStripInfo;
      if (hti.Type == HitTestType.TabStrip)
      {
            MessageBox.Show(ti.Button.ToString());
      }    
}
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
      Dim ti As FarPoint.Win.Spread.TabStripHitTestInformation
      hti = FpSpread1.HitTest(r.X, r.Y)
      ti = hti.TabStripInfo
      If hti.Type = HitTestType.TabStrip Then
            MsgBox(ti.Button)
      End If
Requirements

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

See Also

Reference

TabStripHitTestInformation Class
TabStripHitTestInformation Members

 

 


Copyright © GrapeCity, inc. All rights reserved.