MESCIUS SPREAD for Windows Forms 17.0J
ShapeDeactivated イベント

ユーザーがアクティブなシェイプオブジェクトを非アクティブ化したときに発生します。
構文
'Declaration
 
Public Event ShapeDeactivated As EventHandler
public event EventHandler ShapeDeactivated
次のサンプルコードは、ShapeDeactivated イベントを使用します。
private void Form1_Load(object sender, EventArgs e)
       {
       FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape expected = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:C3");
       expected.Name = "myShape1";
       fpSpread1.Sheets[0].AddShape(expected); 
       }
  
       private void fpSpread1_ShapeDeactivated(object sender, EventArgs e)
       {
        listBox1.Items.Add("ShapeDeactivated");
       }
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load        
        Dim expected As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape("A1:C3")
        expected.Name = "myShape1"
        fpSpread1.Sheets(0).AddShape(expected)    
  End Sub

    Private Sub fpSpread1_ShapeDeactivated(ByVal sender As Object, ByVal e As System.EventArgs) Handles fpSpread1.ShapeDeactivated
        ListBox1.Items.Add("ShapeDeactivated")
    End Sub
参照

FpSpread クラス
FpSpread メンバ

 

 


© MESCIUS inc. All rights reserved.