MESCIUS SPREAD for Windows Forms 17.0J
Workbook プロパティ (ChildWorkbookCreatedEventArgs)

作成された子SpreadViewオブジェクトを取得します。
構文
'Declaration
 
Public ReadOnly Property Workbook As SpreadView
public SpreadView Workbook {get;}

プロパティ値

子ビューを含むSpreadViewオブジェクト
次のサンプルコードは、ワークブックの交互行の背景色を変更します。
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
参照

ChildWorkbookCreatedEventArgs クラス
ChildWorkbookCreatedEventArgs メンバ

 

 


© MESCIUS inc. All rights reserved.