FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetViewCollection クラス : Changing イベント |
'Declaration Public Event Changing As CollectionChangeEventHandler
'使用法 Dim instance As SheetViewCollection Dim handler As CollectionChangeEventHandler AddHandler instance.Changing, handler
public event CollectionChangeEventHandler Changing
イベント ハンドラが、このイベントに関連するデータを含む、CollectionChangeEventArgs 型の引数を受け取りました。次の CollectionChangeEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 説明 |
---|---|
Action | |
Element |
public FarPoint.Win.Spread.SheetViewCollection svc; fpSpread1.Sheets.Count = 3; fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always; FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView(); sv.SheetName = "Added"; svc = fpSpread1.Sheets; svc.Changing += new System.ComponentModel.CollectionChangeEventHandler(svc_Changing); fpSpread1.Sheets.Add(sv); public void svc_Changing(object sender, System.ComponentModel.CollectionChangeEventArgs e) { listBox1.Items.Add("Collection Changing"); }
Friend WithEvents svc As FarPoint.Win.Spread.SheetViewCollection FpSpread1.Sheets.Count = 3 FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always Dim sv As New FarPoint.Win.Spread.SheetView() sv.SheetName = "Added" svc = FpSpread1.Sheets FpSpread1.Sheets.Add(sv) Public Sub svc_changing(ByVal sender As Object, ByVal e As System.ComponentModel.CollectionChangeEventArgs) Handles svc.Changing ListBox1.Items.Add("Collection Changing") End Sub