PowerTools SPREAD for Windows Forms 10.0J
Button プロパティ (FilterBarEventArgs)


どのマウスボタンが押されたかを表す値を取得します。
構文
'Declaration
 
Public ReadOnly Property Button As MouseButtons
'使用法
 
Dim instance As FilterBarEventArgs
Dim value As MouseButtons
 
value = instance.Button
public MouseButtons Button {get;}
次のサンプルコードは、FilterBarClickイベントを使用します。
 fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;

private void fpSpread1_FilterBarClick(object sender, FarPoint.Win.Spread.FilterBarEventArgs e)
        {
            listBox1.Items.Add(e.Button.ToString());
            listBox1.Items.Add(e.Cancel.ToString());
            listBox1.Items.Add(e.Column.ToString());
            listBox1.Items.Add(e.View.ToString());
            listBox1.Items.Add(e.X.ToString());
            listBox1.Items.Add(e.Y.ToString());
        }
FpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar

Private Sub FpSpread1_FilterBarClick(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.FilterBarEventArgs) Handles FpSpread1.FilterBarClick
        ListBox1.Items.Add(e.Button.ToString())
        ListBox1.Items.Add(e.Cancel.ToString())
        ListBox1.Items.Add(e.Column.ToString())
        ListBox1.Items.Add(e.View.ToString())
        ListBox1.Items.Add(e.X.ToString())
        ListBox1.Items.Add(e.Y.ToString())
    End Sub
参照

FilterBarEventArgs クラス
FilterBarEventArgs メンバ

 

 


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