PowerTools SPREAD for Windows Forms 8.0J
ChildWorkbookCreatedEventHandler デリゲート


イベントのソース
イベントデータ
SPREADの ChildWorkbookCreated イベントを処理する定義済みメソッドを表します。
構文
'Declaration
 
Public Delegate Sub ChildWorkbookCreatedEventHandler( _
   ByVal sender As Object, _
   ByVal e As ChildWorkbookCreatedEventArgs _
) 
'使用法
 
Dim instance As New ChildWorkbookCreatedEventHandler(AddressOf HandlerMethod)
public delegate void ChildWorkbookCreatedEventHandler( 
   object sender,
   ChildWorkbookCreatedEventArgs e
)

パラメータ

sender
イベントのソース
e
イベントデータ
解説
イベントの詳細については、FpSpread ChildWorkbookCreatedイベントを参照してください。
次のサンプルコードは、ワークブックの交互行の背景色を変更します。
fpSpread1.ChildWorkbookCreated += new FarPoint.Win.Spread.ChildWorkbookCreatedEventHandler(fpSpread1ChildWorkbookCreated);

private void fpSpread1ChildWorkbookCreated(object sender, FarPoint.Win.Spread.ChildWorkbookCreatedEventArgs e)
{
      e.Workbook.Sheets[e.Workbook.ActiveSheetIndex].AlternatingRows[0].BackColor = Color.Yellow;
}
Dim eh As FarPoint.Win.Spread.ChildWorkbookCreatedEventHandler = AddressOf FpSpread1ChildWorkbookCreated
AddHandler FpSpread1.ChildWorkbookCreated, eh

Private Sub FpSpread1ChildWorkbookCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildWorkbookCreatedEventArgs)
Handles FpSpread1.ChildWorkbookCreated
      e.Workbook.Sheets(e.Workbook.ActiveSheetIndex).AlternatingRows(0).BackColor = Color.Yellow
End Sub
参照

ChildWorkbookCreatedEventHandler メンバ
FarPoint.Win.Spread 名前空間
ChildWorkbookCreated イベント
ChildWorkbookCreatedEventArgs クラス

 

 


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