PowerTools SPREAD for Windows Forms 8.0J
TabStripHitTestInformation コンストラクタ


スプレッドシートのタブストリップの新しいヒットテスト情報を作成します。
構文
'Declaration
 
Public Function New()
'使用法
 
Dim instance As New TabStripHitTestInformation()
public TabStripHitTestInformation()
次のサンプル コードは、ボタンの位置を返します。
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
参照

TabStripHitTestInformation クラス
TabStripHitTestInformation メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.