Spread Windows Forms 12.0 Product Documentation
Button Property (TabStripHitTestInformation)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TabStripHitTestInformation Class : Button Property
Returns the tab strip button the location refers to.
Public ReadOnly Property Button As TabStripButton
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
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)
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
      End If
See Also


TabStripHitTestInformation Class
TabStripHitTestInformation Members