PowerTools SPREAD for Windows Forms 10.0J
Workbook プロパティ


作成された子SpreadViewオブジェクトを取得します。
構文
'Declaration
 
Public ReadOnly Property Workbook As SpreadView
'使用法
 
Dim instance As ChildWorkbookCreatedEventArgs
Dim value As SpreadView
 
value = instance.Workbook
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 メンバ

 

 


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