Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New TabStripHitTestInformation() |
C# | |
---|---|
public TabStripHitTestInformation() |
This example returns the button location.
C# | Copy Code |
---|---|
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()); } } |
Visual Basic | Copy 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 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 |
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