GrapeCity SPREAD for Windows Forms 11.0J
ColumnTouchStrip コンストラクタ


Spread。
ColumnTouchStripのインスタンスを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal spread As FpSpread _
)
'使用法
 
Dim spread As FpSpread
 
Dim instance As New ColumnTouchStrip(spread)
public ColumnTouchStrip( 
   FpSpread spread
)

パラメータ

spread
Spread。
次のサンプルコードは、タッチ用メニューバーを作成します。
private void fpSpread1_TouchStripOpening(object sender, FarPoint.Win.Spread.TouchStripOpeningEventArgs e)
       {
           if (e.Area == FarPoint.Win.Spread.TouchStripShowingArea.Column) {
           e.Cancel = true;  
           FarPoint.Win.Spread.ColumnTouchStrip touchStrip1 = new FarPoint.Win.Spread.ColumnTouchStrip(this.fpSpread1);
           touchStrip1.Items["Paste"].Visible = false;
           touchStrip1.Show(new Point(e.X - 20, e.Y - 35 - touchStrip.Height));
           }
       }
Private Sub fpSpread1_TouchStripOpening(sender As Object, e As FarPoint.Win.Spread.TouchStripOpeningEventArgs)
If (e.Area = FarPoint.Win.Spread.TouchStripShowingArea.Column) Then
e.Cancel = True
Dim touchStrip As New FarPoint.Win.Spread.ColumnTouchStrip(Me.fpSpread1)
touchStrip.Items("Paste").Visible = False
touchStrip.Show(New Point(e.X - 20, e.Y - 35 - touchStrip.Height))
End If
End Sub
参照

ColumnTouchStrip クラス
ColumnTouchStrip メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.